changeset 836:d827b7c0cf97

browser: fixes bug while changing or closing the tab
author souliane <souliane@mailoo.org>
date Tue, 12 Jan 2016 19:17:27 +0100
parents a964ff397484
children 620306b3d5be
files src/browser/sat_browser/libervia_widget.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/browser/sat_browser/libervia_widget.py	Tue Jan 12 18:00:12 2016 +0100
+++ b/src/browser/sat_browser/libervia_widget.py	Tue Jan 12 19:17:27 2016 +0100
@@ -729,6 +729,7 @@
     def onTabSelected(self, sender, tabIndex):
         if tabIndex < self.getWidgetCount():
             TabPanel.onTabSelected(self, sender, tabIndex)
+            self.host.selected_widget = self.getCurrentPanel().selected
             return
         # user clicked the "+" tab
         self.addWidgetsTab(None, select=True)