Mon, 31 Aug 2015 19:38:48 +0200
Added a hack to ensure, that dynamically generated menus (derived from E5ModelMenu) will be shown on Mac OS X.
(grafted from 9334099d3f891ecc4c8d2125ac4491c81f481fed)
E5Gui/E5ModelMenu.py | file | annotate | diff | comparison | revisions |
--- a/E5Gui/E5ModelMenu.py Sun Aug 30 19:33:16 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)