]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fixed issue that the "Show Menu Bar" state is not updated correctly (workaround for...
authorPeter Penz <peter.penz19@gmail.com>
Tue, 23 Sep 2008 13:04:46 +0000 (13:04 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Tue, 23 Sep 2008 13:04:46 +0000 (13:04 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=863909

src/dolphincontextmenu.cpp
src/dolphinmainwindow.cpp

index 55b83c552ca9130c5aa8f89257b2bf10e839a14b..7edfdb2852f4c38b86dd954d5ceb2f6f66f04457 100644 (file)
@@ -322,10 +322,6 @@ void DolphinContextMenu::addShowMenubarAction(KMenu* menu)
 {
     KAction* showMenuBar = m_mainWindow->showMenuBarAction();
     if (!m_mainWindow->menuBar()->isVisible()) {
-        // TODO: it should not be necessary to uncheck the menu
-        // bar action, but currently the action states don't get
-        // updated if the menu is disabled
-        showMenuBar->setChecked(false);
         menu->addAction(showMenuBar);
         menu->addSeparator();
     }
index 78e5ab31c3759acb717378689002515dcfd8c7f0..da7f8e1707f30439f531efd95c79a8f8f0eecfd9 100644 (file)
@@ -834,7 +834,6 @@ void DolphinMainWindow::init()
     m_centralWidgetLayout->addWidget(m_tabBar);
     m_centralWidgetLayout->addWidget(m_viewTab[m_tabIndex].splitter);
 
-
     setCentralWidget(centralWidget);
     setupDockWidgets();
 
@@ -861,6 +860,7 @@ void DolphinMainWindow::init()
         resize(750, 500);
     }
 
+    m_showMenuBar->setChecked(!menuBar()->isHidden());  // workaround for bug #171080
     emit urlChanged(homeUrl);
 }