changeset 650:7e3cdc39c3e7 frontends_multi_profiles

browser_side: fixes misc issues (forgotten parenthesis and wrong argument)
author souliane <souliane@mailoo.org>
date Fri, 27 Feb 2015 00:56:08 +0100
parents ccf95ec87005
children 2df91d0308ac
files src/browser/sat_browser/libervia_widget.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/browser/sat_browser/libervia_widget.py	Fri Feb 27 00:55:07 2015 +0100
+++ b/src/browser/sat_browser/libervia_widget.py	Fri Feb 27 00:56:08 2015 +0100
@@ -199,7 +199,7 @@
         _flextable = self.getParent()
         _widgetspanel = _flextable.getParent().getParent()
         row_idx, cell_idx = self._getCellAndRow(_flextable, event)
-        if self.host.getSelected == self:
+        if self.host.getSelected() == self:
             self.host.setSelected(None)
         _widgetspanel.changeWidget(row_idx, cell_idx, _new_panel)
         """_unempty_panels = filter(lambda wid:not isinstance(wid,EmptyWidget),list(_flextable))
@@ -817,7 +817,7 @@
             the last widget.
         @return: WidgetsPanel
         """
-        widgets_panel = WidgetsPanel(self, locked=locked)
+        widgets_panel = WidgetsPanel(self.host, locked=locked)
         self.addTab(widgets_panel, label, select)
         return widgets_panel