1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

FileMenu: Fix showing state of Work offline action

This commit is contained in:
David Rosca 2014-09-25 14:05:54 +02:00
parent bbc6c72608
commit c607a2f717

View File

@ -97,7 +97,6 @@ void MainMenu::initSuperMenu(QMenu* superMenu) const
superMenu->addAction(m_actions[QSL("File/WorkOffline")]); superMenu->addAction(m_actions[QSL("File/WorkOffline")]);
superMenu->addSeparator(); superMenu->addSeparator();
superMenu->addAction(m_actions[QSL("Standard/Quit")]); superMenu->addAction(m_actions[QSL("Standard/Quit")]);
m_actions[QSL("File/WorkOffline")]->setChecked(qzSettings->workOffline);
} }
QAction* MainMenu::action(const QString &name) const QAction* MainMenu::action(const QString &name) const
@ -379,6 +378,7 @@ void MainMenu::aboutToShowFileMenu()
#ifndef Q_OS_MAC #ifndef Q_OS_MAC
m_actions[QSL("File/CloseWindow")]->setEnabled(mApp->windowCount() > 1); m_actions[QSL("File/CloseWindow")]->setEnabled(mApp->windowCount() > 1);
#endif #endif
m_actions[QSL("File/WorkOffline")]->setChecked(qzSettings->workOffline);
} }
void MainMenu::aboutToHideFileMenu() void MainMenu::aboutToHideFileMenu()