Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Feb 4, 2022
1 parent 7105f82 commit 0580ac5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/alexandria/ui/smart_library_properties_dialog_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def user_confirms_possible_weirdnesses_before_saving?
end

def update_rules_header_box(predicate_operator_rule = SmartLibrary::ALL_RULES)
@rules_header_box.children.each { |x| @rules_header_box.remove(x) }
@rules_header_box.children&.each { |x| @rules_header_box.remove(x) }

if @rules_box.children.length > 1
label1 = Gtk::Label.new
Expand All @@ -130,9 +130,9 @@ def update_rules_header_box(predicate_operator_rule = SmartLibrary::ALL_RULES)
label2.set_alignment(0.0, 0.5)
label2.text = _("of the following rules:")

@rules_header_box.pack_start(label1, expand: false, fill: false)
@rules_header_box.pack_start(cb, expand: false, fill: false)
@rules_header_box.pack_start(label2, expand: false, fill: false)
@rules_header_box.pack_start(label1, false, false, 0)
@rules_header_box.pack_start(cb, false, false, 0)
@rules_header_box.pack_start(label2, false, false, 0)
else
label = Gtk::Label.new
label.set_alignment(0.0, 0.5)
Expand Down

0 comments on commit 0580ac5

Please sign in to comment.