Changeset 20ebc6fcc55e…
Parent 769b71619e09…
by
Changes to one file · Browse files at 20ebc6fcc55e Showing diff from parent 769b71619e09 Diff from another changeset...
@@ -6,6 +6,7 @@ # GNU General Public License version 2 or any later version.
import os
+import sys
import atexit
import shutil
import stat
@@ -298,6 +299,11 @@ or QIcon(':/icons/fallback.svg'))
return _iconcache[name]
+def getmenuicon(name):
+ if sys.platform == 'darwin':
+ return QIcon()
+ return geticon(name)
+
_pixmapcache = {}
def getpixmap(name, width=16, height=16):
|
Loading...