diff browser_side/richtext.py @ 233:146fc6739951

browser side: fixed RichTextEditor debug mode when no parameter exists.
author souliane <souliane@mailoo.org>
date Wed, 09 Oct 2013 15:12:50 +0200
parents 0ed09cc0566f
children d4e73d9140af
line wrap: on
line diff
--- a/browser_side/richtext.py	Tue Oct 08 14:12:38 2013 +0200
+++ b/browser_side/richtext.py	Wed Oct 09 15:12:50 2013 +0200
@@ -167,7 +167,7 @@
 
     def setVisible(self, kwargs):
         """Called each time the widget is displayed, after creation or after having been hidden."""
-        self.host.bridge.call('asyncGetParamA', self.setToolBar, FORMAT_PARAM_NAME, FORMAT_PARAM_KEY)
+        self.host.bridge.call('asyncGetParamA', self.setToolBar, FORMAT_PARAM_NAME, FORMAT_PARAM_KEY) or self.setToolBar(None)
         FlexTable.setVisible(self, kwargs)
 
     def __close(self):