1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +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->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()