Skip to content

Commit

Permalink
Gui: [skip ci] fixes: Std_DrawStyle button image: confusing update be…
Browse files Browse the repository at this point in the history
…havior
  • Loading branch information
wwmayer committed May 1, 2020
1 parent c26c50e commit 40468da
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Gui/Action.cpp
Expand Up @@ -323,8 +323,11 @@ int ActionGroup::checkedAction() const

void ActionGroup::setCheckedAction(int i)
{
_group->actions()[i]->setChecked(true);
this->setIcon(_group->actions()[i]->icon());
QAction* a = _group->actions()[i];
a->setChecked(true);
this->setIcon(a->icon());
this->setToolTip(a->toolTip());
this->setProperty("defaultAction", QVariant(i));
}

/**
Expand Down

0 comments on commit 40468da

Please sign in to comment.