comparison src/browser/sat_browser/libervia_widget.py @ 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 f8a7a046ff9c
children fd4eae654182
comparison
equal deleted inserted replaced
835:a964ff397484 836:d827b7c0cf97
727 self.tabBar.addStyleDependentName('oneTab') 727 self.tabBar.addStyleDependentName('oneTab')
728 728
729 def onTabSelected(self, sender, tabIndex): 729 def onTabSelected(self, sender, tabIndex):
730 if tabIndex < self.getWidgetCount(): 730 if tabIndex < self.getWidgetCount():
731 TabPanel.onTabSelected(self, sender, tabIndex) 731 TabPanel.onTabSelected(self, sender, tabIndex)
732 self.host.selected_widget = self.getCurrentPanel().selected
732 return 733 return
733 # user clicked the "+" tab 734 # user clicked the "+" tab
734 self.addWidgetsTab(None, select=True) 735 self.addWidgetsTab(None, select=True)
735 736
736 def getCurrentPanel(self): 737 def getCurrentPanel(self):