Skip to content
Snippets Groups Projects
Commit 1bf2d0ab authored by con's avatar con
Browse files

Fix shortcut handling.

Introduced by recent ProxyAction refactoring, we may not copy the actual
enabled/visible/checked state during initialization.
parent b0184e91
No related branches found
No related tags found
No related merge requests found
......@@ -137,10 +137,12 @@ void ProxyAction::update(QAction *action, bool initialize)
}
setCheckable(action->isCheckable());
setChecked(action->isChecked());
setEnabled(action->isEnabled());
setVisible(action->isVisible());
if (!initialize) {
setChecked(action->isChecked());
setEnabled(action->isEnabled());
setVisible(action->isVisible());
}
connectAction();
connect(this, SIGNAL(changed()), this, SLOT(updateToolTipWithKeySequence()));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment