diff options
author | René Stadler <mail@renestadler.de> | 2009-02-02 03:41:34 +0200 |
---|---|---|
committer | René Stadler <mail@renestadler.de> | 2009-02-07 23:07:56 +0200 |
commit | daaf215876acc661aef99d67c8a11decfb052c35 (patch) | |
tree | c02c81b9b7299eddb149547168894bbb85f12997 | |
parent | 468bbbec76e4850f4b5fd0cb7cde30154ae3a3ce (diff) |
GUI.filters: Fix saving of filter when filtering is disabled
Turning off filtering internally switches to show-all, which was saved to
state.
-rw-r--r-- | GstInspector/GUI/filters.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/GstInspector/GUI/filters.py b/GstInspector/GUI/filters.py index 926fe7c..76b8a6f 100644 --- a/GstInspector/GUI/filters.py +++ b/GstInspector/GUI/filters.py @@ -630,7 +630,10 @@ class FilterManager (Manager): def detach (self): - active = self.active + if self.default_active: + active = self.default_active + else: + active = self.active state = self.app.state state.filter = active @@ -736,6 +739,7 @@ class FilterManager (Manager): return self.active = self.default_active + self.default_active = None del _ from gettext import gettext as _ |