diff browser_side/dialog.py @ 255:da0487f0a2e7

browser_side: small changes to prepare the contact group manager: - group and contact lists are sorted - avoid adding empty group in the "Add group" panel - allow to show/hide the contact panel from another class
author souliane <souliane@mailoo.org>
date Sat, 09 Nov 2013 15:31:39 +0100
parents 19153af4f327
children 30c01671e338
line wrap: on
line diff
--- a/browser_side/dialog.py	Sat Nov 09 09:38:17 2013 +0100
+++ b/browser_side/dialog.py	Sat Nov 09 15:31:39 2013 +0100
@@ -298,6 +298,8 @@
 
     def onGroupInput(self, sender):
         text = sender.getText()
+        if text == "":
+            return
         for group in self.groups:
             if text == group:
                 Window.alert("The group '%s' already exists." % text)