Author: asterix
Date: 2009-05-10 21:37:39 +0200 (Sun, 10 May 2009)
New Revision: 11279

Modified:
   trunk/src/config.py
Log:
prevent traceback when we click on Rename in accounts window, but no account is 
selected. Fixes #5019


Modified: trunk/src/config.py
===================================================================
--- trunk/src/config.py 2009-05-10 19:36:04 UTC (rev 11278)
+++ trunk/src/config.py 2009-05-10 19:37:39 UTC (rev 11279)
@@ -1720,6 +1720,8 @@
                        remove(account)
 
        def on_rename_button_clicked(self, widget):
+               if not self.current_account:
+                       return
                enable = gajim.config.get('enable_zeroconf')
                if (self.current_account != gajim.ZEROCONF_ACC_NAME or enable) 
and \
                gajim.connections[self.current_account].connected != 0:

_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to