diff --git a/src/gui/GuiApplication.cpp b/src/gui/GuiApplication.cpp index e849a2f5643..2c277d6dee0 100644 --- a/src/gui/GuiApplication.cpp +++ b/src/gui/GuiApplication.cpp @@ -75,6 +75,10 @@ GuiApplication::GuiApplication() QApplication::setPalette( *lpal ); LmmsStyle::s_palette = lpal; +#ifdef LMMS_BUILD_APPLE + QApplication::setAttribute(Qt::AA_DontShowIconsInMenus, true); +#endif + // Show splash screen QSplashScreen splashScreen( embed::getIconPixmap( "splash" ) ); splashScreen.show(); diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 27992399e97..b7cba1faaba 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -893,6 +893,10 @@ void MainWindow::updateRecentlyOpenedProjectsMenu() { m_recentlyOpenedProjectsMenu->addAction( embed::getIconPixmap( "project_file" ), *it ); +#ifdef LMMS_BUILD_APPLE + m_recentlyOpenedProjectsMenu->actions().last()->setIconVisibleInMenu(false); // QTBUG-44565 workaround + m_recentlyOpenedProjectsMenu->actions().last()->setIconVisibleInMenu(true); +#endif shownInMenu++; if( shownInMenu >= 15 ) { @@ -1482,6 +1486,10 @@ void MainWindow::fillTemplatesMenu() m_templatesMenu->addAction( embed::getIconPixmap( "project_file" ), ( *it ).left( ( *it ).length() - 4 ) ); +#ifdef LMMS_BUILD_APPLE + m_templatesMenu->actions().last()->setIconVisibleInMenu(false); // QTBUG-44565 workaround + m_templatesMenu->actions().last()->setIconVisibleInMenu(true); +#endif } QDir d( ConfigManager::inst()->factoryProjectsDir() + "templates" ); @@ -1499,6 +1507,10 @@ void MainWindow::fillTemplatesMenu() m_templatesMenu->addAction( embed::getIconPixmap( "project_file" ), ( *it ).left( ( *it ).length() - 4 ) ); +#ifdef LMMS_BUILD_APPLE + m_templatesMenu->actions().last()->setIconVisibleInMenu(false); // QTBUG-44565 workaround + m_templatesMenu->actions().last()->setIconVisibleInMenu(true); +#endif } }