[nanny] Destroy add_filter_dialogs after dbusclient send msg



commit dc6599a335265eda2a918fc44e5c01830f777d50
Author: Roberto Majadas <roberto majadas openshine com>
Date:   Wed Dec 23 00:21:55 2009 +0100

    Destroy add_filter_dialogs after dbusclient send msg

 client/gnome/admin/src/ConfigureProxyDialog.py |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/client/gnome/admin/src/ConfigureProxyDialog.py b/client/gnome/admin/src/ConfigureProxyDialog.py
index 8bdfdba..592315b 100644
--- a/client/gnome/admin/src/ConfigureProxyDialog.py
+++ b/client/gnome/admin/src/ConfigureProxyDialog.py
@@ -129,6 +129,8 @@ class ConfigureProxyDialog (gtk.Dialog):
                                                         url,
                                                         self.__on_add_dansguardian_list_reply,
                                                         self.__on_add_dansguardian_list_error)
+                self.proxy_rule_dialog.destroy()
+                self.proxy_rule_dialog = None
             elif type == 1:
                 self.dbus_client.add_custom_filter (self.__selected_user_id, True, name, description, url)
                 self.__fill_treeviews ()
@@ -158,12 +160,13 @@ class ConfigureProxyDialog (gtk.Dialog):
             name = name_entry.get_text()
             description = description_entry.get_text()
             url = url_entry.get_text()
+            dialog.destroy()
 
             self.dbus_client.add_custom_filter (self.__selected_user_id, False, name, description, url)
 
             self.__fill_treeviews ()
-        
-        dialog.destroy()
+        else:
+            dialog.destroy()
 
     def __on_add_dansguardian_list_reply (self, value):
         self.progress_dialog.destroy()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]