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
......@@ -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()));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment