From 3b5f19fd9d67b49a7009b5810c5dd4ecb1a7cede Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sun, 2 Jul 2017 17:58:57 +0200 Subject: [PATCH] Shell: Fix sync "Show menubar" action status No need to sync it when Shell uses a native menubar --- shell/shell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/shell.cpp b/shell/shell.cpp index f8f1dbe31..dae56158f 100644 --- a/shell/shell.cpp +++ b/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);