André Sintzoff avatar André Sintzoff committed 15e4386

workbench: don't display icons in menu on Mac OS X

Currently, the function getmenuicon is used for this purpose.
Unfortunately, for actions simultaneously attached to a menu item and to a
toolbar, that function can't be used.

Thanks to qt_mac_set_menubar_icons, the menu icons can always be hidden.

Comments (0)

Files changed (2)


                             or QIcon(':/icons/fallback.svg'))
         return _iconcache[name]
-if sys.platform == 'darwin':
-    # On Mac OS X, we do not want icons on menus
-    def getmenuicon(name):
-        return QIcon()
-    getmenuicon = geticon
+getmenuicon = geticon
 def getoverlaidicon(base, overlay):


             self.dockMenu.addAction(_('&Open Repository...'),
+            # On Mac OS X, we do not want icons on menus
+            qt_mac_set_menubar_icons(False)
         # Create the actions that will be displayed on the context menu
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.