diff frontends/src/primitivus/xmlui.py @ 1185:6184779544c7

Primitivus (xmlui): fixed window closing on save params + removed now unused onConfigureRoom in Chat
author Goffi <goffi@goffi.org>
date Mon, 08 Sep 2014 18:32:36 +0200
parents e2e1e27a3680
children f91e7028e2c3
line wrap: on
line diff
--- a/frontends/src/primitivus/xmlui.py	Mon Sep 08 18:15:15 2014 +0200
+++ b/frontends/src/primitivus/xmlui.py	Mon Sep 08 18:32:36 2014 +0200
@@ -20,6 +20,7 @@
 from sat.core.i18n import _
 import urwid
 import copy
+from sat.core import exceptions
 from urwid_satext import sat_widgets
 from urwid_satext import files_management
 from sat.core.log import getLogger
@@ -405,8 +406,10 @@
     def _xmluiClose(self):
         if self._dest == 'window':
             self.host.removeWindow()
+        elif self._dest == 'popup':
+            self.host.removePopUp()
         else:
-            self.host.removePopUp()
+            raise exceptions.InternalError("self._dest unknown, are you sure you have called XMLUI.show ?")
 
 
 class XMLUIDialog(xmlui.XMLUIDialog):