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());
|
setCheckable(action->isCheckable());
|
||||||
setChecked(action->isChecked());
|
|
||||||
|
|
||||||
setEnabled(action->isEnabled());
|
if (!initialize) {
|
||||||
setVisible(action->isVisible());
|
setChecked(action->isChecked());
|
||||||
|
setEnabled(action->isEnabled());
|
||||||
|
setVisible(action->isVisible());
|
||||||
|
}
|
||||||
connectAction();
|
connectAction();
|
||||||
connect(this, SIGNAL(changed()), this, SLOT(updateToolTipWithKeySequence()));
|
connect(this, SIGNAL(changed()), this, SLOT(updateToolTipWithKeySequence()));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user