diff frontends/wix/main_window.py @ 183:9ee4a1d0d7fb

Added auto(dis)connect params + misc - parameters,xmlui: "bool" type is now managed - parameters,xmlui: categories now use label in addition of name - QuickFrontend: auto(dis)connection management - plugin XEP-0045: an error dialog is now show in frontend if room cannot be joined - Wix: fixed unproper close event management
author Goffi <goffi@goffi.org>
date Wed, 18 Aug 2010 15:57:26 +0800
parents 556c2bd7c344
children fd2db62ea5eb
line wrap: on
line diff
--- a/frontends/wix/main_window.py	Wed Aug 18 12:45:48 2010 +0800
+++ b/frontends/wix/main_window.py	Wed Aug 18 15:57:26 2010 +0800
@@ -125,8 +125,6 @@
         for i in range(self.menuBar.GetMenuCount()):
             self.menuBar.EnableTop(i, True)
         super(MainWindow, self).plug_profile(profile_key)
-        if not self.bridge.isConnected(profile_key):
-            self.bridge.connect(profile_key)
 
     def createMenus(self):
         info(_("Creating menus"))
@@ -464,7 +462,10 @@
         gatewayManager = GatewaysManager(self, data, server=target)
     
     def onClose(self, e):
+        QuickApp.onExit(self)
         info(_("Exiting..."))
+        for win in self.chat_wins:
+            self.chat_wins[win].Destroy()
         e.Skip()
 
     def onTrayClick(self, e):