mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Use trigger to change the state of the menu actions; that way, we get the
callbacks.
This commit is contained in:
parent
f14108c9e1
commit
dbde66cbd5
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue