diff --git a/src/libs/utils/proxyaction.cpp b/src/libs/utils/proxyaction.cpp index 0353594a44f65ebb7283d14ac2de18a96897300b..8507dc8e086f0e14b412434adba3c2d238afcb1a 100644 --- a/src/libs/utils/proxyaction.cpp +++ b/src/libs/utils/proxyaction.cpp @@ -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())); }