Shell: Fix sync "Show menubar" action status

No need to sync it when Shell uses a native menubar
remotes/origin/Applications/17.04
Albert Astals Cid 9 years ago
parent 451bb151c2
commit 3b5f19fd9d
  1. 2
      shell/shell.cpp

@ -497,7 +497,7 @@ void Shell::setFullScreen( bool useFullScreen )
void Shell::showEvent(QShowEvent *e)
{
if (m_showMenuBarAction)
if (!menuBar()->isNativeMenuBar() && m_showMenuBarAction)
m_showMenuBarAction->setChecked( menuBar()->isVisible() );
KParts::MainWindow::showEvent(e);

Loading…
Cancel
Save