From dbde66cbd5c1d7821c214dc55736cb05b83bb44d Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Wed, 19 Jun 2013 10:32:55 -0700 Subject: [PATCH] Use trigger to change the state of the menu actions; that way, we get the callbacks. --- interface/src/Application.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 41ad44e432..8ae5013567 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -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) {