Use trigger to change the state of the menu actions; that way, we get the

callbacks.
This commit is contained in:
Andrzej Kapolka 2013-06-19 10:32:55 -07:00
parent f14108c9e1
commit dbde66cbd5

View file

@ -2653,7 +2653,9 @@ void Application::scanMenu(QMenu* menu, settingsAction modifySetting, QSettings*
}
void Application::loadAction(QSettings* set, QAction* action) {
action->setChecked(set->value(action->text(), action->isChecked()).toBool());
if (action->isChecked() != set->value(action->text(), action->isChecked()).toBool()) {
action->trigger();
}
}
void Application::saveAction(QSettings* set, QAction* action) {