forked from qt-creator/qt-creator
Fix shortcut handling.
Introduced by recent ProxyAction refactoring, we may not copy the actual enabled/visible/checked state during initialization.
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user