changeset 249:5d69e4cab925

core: when switching to a new widget, it becomes the selected one.
author Goffi <goffi@goffi.org>
date Sat, 26 Jan 2019 20:24:48 +0100
parents b6e33b35538b
children ff1efdeff53f
files cagou/core/cagou_main.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/cagou/core/cagou_main.py	Sat Jan 26 20:24:48 2019 +0100
+++ b/cagou/core/cagou_main.py	Sat Jan 26 20:24:48 2019 +0100
@@ -686,6 +686,7 @@
             raise exceptions.InternalError(u"no wrapper found")
 
         wrapper.changeWidget(new)
+        self.selected_widget = new
 
     def _addVisibleWidget(self, widget):
         """declare a widget visible