changeset 1991:dbe025b03eba

primitivus: fixed XMLUI window creation newWidget method was not working if a widget was already selected, breaking all XMLUI with window type.
author Goffi <goffi@goffi.org>
date Fri, 01 Jul 2016 00:02:28 +0200
parents dfbe0bb056dc
children d5befe7253aa
files frontends/src/primitivus/primitivus
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/primitivus/primitivus	Fri Jul 01 00:00:36 2016 +0200
+++ b/frontends/src/primitivus/primitivus	Fri Jul 01 00:02:28 2016 +0200
@@ -615,8 +615,9 @@
 
 
     def newWidget(self, widget):
-        if self.selected_widget is None:
-            self.selectWidget(widget)
+        # FIXME: when several widgets are possible (e.g. with :split)
+        #        do not replace current widget when self.selected_widget != None
+        self.selectWidget(widget)
 
     def selectWidget(self, widget):
         """Display a widget if possible,