From c607a2f717e9e3c01176bdb44a7681e24df97d77 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Thu, 25 Sep 2014 14:05:54 +0200 Subject: [PATCH] FileMenu: Fix showing state of Work offline action --- src/lib/app/mainmenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/app/mainmenu.cpp b/src/lib/app/mainmenu.cpp index 0bc9c50c0..945d53aea 100644 --- a/src/lib/app/mainmenu.cpp +++ b/src/lib/app/mainmenu.cpp @@ -97,7 +97,6 @@ void MainMenu::initSuperMenu(QMenu* superMenu) const superMenu->addAction(m_actions[QSL("File/WorkOffline")]); superMenu->addSeparator(); superMenu->addAction(m_actions[QSL("Standard/Quit")]); - m_actions[QSL("File/WorkOffline")]->setChecked(qzSettings->workOffline); } QAction* MainMenu::action(const QString &name) const @@ -379,6 +378,7 @@ void MainMenu::aboutToShowFileMenu() #ifndef Q_OS_MAC m_actions[QSL("File/CloseWindow")]->setEnabled(mApp->windowCount() > 1); #endif + m_actions[QSL("File/WorkOffline")]->setChecked(qzSettings->workOffline); } void MainMenu::aboutToHideFileMenu()