Skip to content

Commit

Permalink
Workaround for Qt bug preventing icon display in submenus.
Browse files Browse the repository at this point in the history
  • Loading branch information
follower committed Feb 16, 2017
1 parent cd0a404 commit c5f4bd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,7 @@ void MainWindow::updateRecentlyOpenedProjectsMenu()
m_recentlyOpenedProjectsMenu->addAction(
embed::getIconPixmap( "project_file" ), *it );
#ifdef LMMS_BUILD_APPLE
m_recentlyOpenedProjectsMenu->actions().last()->setIconVisibleInMenu(false); // Workaround for https://bugreports.qt.io/browse/QTBUG-44565
m_recentlyOpenedProjectsMenu->actions().last()->setIconVisibleInMenu(true);
#endif
shownInMenu++;
Expand Down Expand Up @@ -1486,6 +1487,7 @@ void MainWindow::fillTemplatesMenu()
embed::getIconPixmap( "project_file" ),
( *it ).left( ( *it ).length() - 4 ) );
#ifdef LMMS_BUILD_APPLE
m_templatesMenu->actions().last()->setIconVisibleInMenu(false); // Workaround for https://bugreports.qt.io/browse/QTBUG-44565
m_templatesMenu->actions().last()->setIconVisibleInMenu(true);
#endif
}
Expand All @@ -1506,6 +1508,7 @@ void MainWindow::fillTemplatesMenu()
embed::getIconPixmap( "project_file" ),
( *it ).left( ( *it ).length() - 4 ) );
#ifdef LMMS_BUILD_APPLE
m_templatesMenu->actions().last()->setIconVisibleInMenu(false); // Workaround for https://bugreports.qt.io/browse/QTBUG-44565
m_templatesMenu->actions().last()->setIconVisibleInMenu(true);
#endif
}
Expand Down

0 comments on commit c5f4bd4

Please sign in to comment.