Genre filter dialog: fix initial visibility of the clear button
authorPhilipp Zabel <philipp.zabel@gmail.com>
Fri, 6 Aug 2010 16:14:59 +0000 (18:14 +0200)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Fri, 6 Aug 2010 16:38:59 +0000 (18:38 +0200)
src/genre-filter-dialog.vala

index b5c8aef..08bb5ce 100644 (file)
@@ -87,6 +87,10 @@ class GenreFilterDialog : Gtk.Dialog {
                }
 
                show_all ();
+               if (genres.field == 0)
+                       button_clear.hide ();
+               else
+                       update_title ();
 
                do {
                        res = base.run ();