do not show icons in menu on macOS

There is something wrong in the icon resource path on macOS. The icons
in menu could not be displayed correctly.
This commit is contained in:
Le Tan 2017-06-11 20:57:05 +08:00
parent c15908a724
commit 41fef0ed88

View File

@ -106,6 +106,12 @@ int main(int argc, char *argv[])
QApplication app(argc, argv);
vconfig.initialize();
#if defined(Q_OS_MACOS)
// Do not show icons in menu on macOS since there is something wrong with
// the icon path on macOS.
app.setAttribute(Qt::AA_DontShowIconsInMenus);
#endif
QString locale = VUtils::getLocale();
qDebug() << "use locale" << locale;