Disable icons in menus on Mac.

This commit is contained in:
John Maguire 2010-08-26 12:25:31 +00:00
parent b450545a63
commit a8295002cf
1 changed files with 4 additions and 0 deletions

View File

@ -168,9 +168,13 @@ int main(int argc, char *argv[]) {
a.setQuitOnLastWindowClosed(false);
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
// idea, and makes some menus in Clementine look confusing.
QCoreApplication::setAttribute(Qt::AA_DontShowIconsInMenus, false);
#else
QCoreApplication::setAttribute(Qt::AA_DontShowIconsInMenus, true);
#endif
// Resources
Q_INIT_RESOURCE(data);