Added a hack to ensure, that dynamically generated menus (derived from E5ModelMenu) will be shown on Mac OS X.

Mon, 31 Aug 2015 19:38:48 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 31 Aug 2015 19:38:48 +0200
changeset 4412
9334099d3f89
parent 4411
15556f6b4b0f
child 4414
5caf22e10678

Added a hack to ensure, that dynamically generated menus (derived from E5ModelMenu) will be shown on Mac OS X.

E5Gui/E5ModelMenu.py file | annotate | diff | comparison | revisions
--- a/E5Gui/E5ModelMenu.py	Mon Aug 31 18:53:49 2015 +0200
+++ b/E5Gui/E5ModelMenu.py	Mon Aug 31 19:38:48 2015 +0200
@@ -48,6 +48,9 @@
         self.__dropRow = -1
         self.__dropIndex = None
         
+        # This is to ensure it will be shown on Mac OS X
+        self.addAction("--not populated--")
+        
         self.aboutToShow.connect(self.__aboutToShow)
         self.triggered.connect(self.__actionTriggered)
     

eric ide

mercurial