Disable icons in menus on Mac.
This commit is contained in:
parent
b450545a63
commit
a8295002cf
|
@ -168,9 +168,13 @@ int main(int argc, char *argv[]) {
|
||||||
a.setQuitOnLastWindowClosed(false);
|
a.setQuitOnLastWindowClosed(false);
|
||||||
a.isRunning(); // Otherwise QtLocalPeer won't lock the lockfile :S
|
a.isRunning(); // Otherwise QtLocalPeer won't lock the lockfile :S
|
||||||
|
|
||||||
|
#ifndef Q_OS_DARWIN
|
||||||
// Gnome on Ubuntu has menu icons disabled by default. I think that's a bad
|
// Gnome on Ubuntu has menu icons disabled by default. I think that's a bad
|
||||||
// idea, and makes some menus in Clementine look confusing.
|
// idea, and makes some menus in Clementine look confusing.
|
||||||
QCoreApplication::setAttribute(Qt::AA_DontShowIconsInMenus, false);
|
QCoreApplication::setAttribute(Qt::AA_DontShowIconsInMenus, false);
|
||||||
|
#else
|
||||||
|
QCoreApplication::setAttribute(Qt::AA_DontShowIconsInMenus, true);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Resources
|
// Resources
|
||||||
Q_INIT_RESOURCE(data);
|
Q_INIT_RESOURCE(data);
|
||||||
|
|
Loading…
Reference in New Issue