Remove AA_DontShowIconsInMenus

Possible fix for #516
This commit is contained in:
Jonas Kvinge 2020-08-21 23:40:44 +02:00
parent 1291dadbd6
commit 7e3042c4f4
1 changed files with 0 additions and 6 deletions

View File

@ -196,14 +196,8 @@ int main(int argc, char* argv[]) {
QCoreApplication::setLibraryPaths(QStringList() << QCoreApplication::applicationDirPath() + "/" + USE_BUNDLE_DIR);
#endif
#ifndef Q_OS_MACOS
// Gnome on Ubuntu has menu icons disabled by default. I think that's a bad idea, and makes some menus in Strawberry look confusing.
QCoreApplication::setAttribute(Qt::AA_DontShowIconsInMenus, false);
#else
QCoreApplication::setAttribute(Qt::AA_DontShowIconsInMenus, true);
// Fixes focus issue with NSSearchField, see QTBUG-11401
QCoreApplication::setAttribute(Qt::AA_NativeWindows, true);
#endif
// Set the permissions on the config file on Unix - it can contain passwords for internet services so it's important that other users can't read it.
// On Windows these are stored in the registry instead.