summaryrefslogtreecommitdiff
path: root/ccm/Widgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'ccm/Widgets.py')
-rw-r--r--ccm/Widgets.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ccm/Widgets.py b/ccm/Widgets.py
index 499b21b..ff61628 100644
--- a/ccm/Widgets.py
+++ b/ccm/Widgets.py
@@ -1192,7 +1192,7 @@ class MatchButton(gtk.Button):
dlg.show_all ()
response = dlg.run ()
- dlg.destroy ()
+ dlg.hide ()
if response == gtk.RESPONSE_OK:
type = type_chooser.get_active_text ()
value = entry.get_text ()
@@ -1200,6 +1200,8 @@ class MatchButton(gtk.Button):
invert = check.get_active ()
self.generate_match (type, value, relation, invert)
+ dlg.destroy ()
+
class FileButton (gtk.Button):
__gsignals__ = {"changed" : (gobject.SIGNAL_RUN_FIRST,
gobject.TYPE_NONE,