# HG changeset patch # User Chris Cannam # Date 1309423409 -3600 # Node ID 110d1fefa073b66e332a4379ca8c99b8d41f417b # Parent 33a1c7c9d9d9e61765a98ef8ded38508557b7479 Omit icons from menus on Mac diff -r 33a1c7c9d9d9 -r 110d1fefa073 src/main.cpp --- a/src/main.cpp Thu Jun 30 09:43:18 2011 +0100 +++ b/src/main.cpp Thu Jun 30 09:43:29 2011 +0100 @@ -31,6 +31,11 @@ QApplication::setOrganizationDomain("easymercurial.org"); QApplication::setApplicationName(QApplication::tr("EasyMercurial")); +#ifdef Q_OS_MAC + // Mac doesn't align menu labels when icons are shown: result is messy + app.setAttribute(Qt::AA_DontShowIconsInMenus); +#endif + // Lose our controlling terminal (so we can provide a new pty to // capture password requests) loseControllingTerminal();