From 266d796333de5e759523b4ce4b86f267ab4e1858 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Tue, 22 Aug 2006 18:00:31 +0000 Subject: [PATCH] * src/FilterEditor/_EditRule.py: Change Media to MediaObject; (__init__): Work with empty filter names (new filter). svn: r7238 --- ChangeLog | 3 ++- src/FilterEditor/_EditRule.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index af57277a2..60a939b82 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18,7 +18,8 @@ * src/DisplayState.py (DisplayState.__signals__): Register 'filters-changed' signal. * src/FilterEditor/_ShowResults.py: Change Media to MediaObject. - * src/FilterEditor/_EditRule.py: Change Media to MediaObject. + * src/FilterEditor/_EditRule.py: Change Media to MediaObject; + (__init__): Work with empty filter names (new filter). * src/FilterEditor/_FilterEditor.py (close): Emit 'filters-changed'. * src/Filters/SideBar/*py: Take uistate and connect to the 'filters-changed' signal. diff --git a/src/FilterEditor/_EditRule.py b/src/FilterEditor/_EditRule.py index 69fa1ca05..0877984e5 100644 --- a/src/FilterEditor/_EditRule.py +++ b/src/FilterEditor/_EditRule.py @@ -149,7 +149,7 @@ class MyFilters(gtk.ComboBox): self.flist.sort() for fname in self.flist: - if filter_name.strip() and (fname != filter_name): + if fname != filter_name: store.append(row=[fname]) self.set_active(0) self.show()