Shell: Fix sync "Show menubar" action status

No need to sync it when Shell uses a native menubar
This commit is contained in:
Albert Astals Cid 2017-07-02 17:58:57 +02:00
parent 451bb151c2
commit 3b5f19fd9d

View file

@ -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);