mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-09 23:16:00 -06:00
AppFwk: Always update userData of actions
This commit is contained in:
parent
1d9d8f6794
commit
d2e590875d
@ -97,14 +97,15 @@ QAction* CmdFeature::actionWithUserData(const QString& customText, const QVarian
|
||||
{
|
||||
action = new QAction(this);
|
||||
|
||||
if (!userData.isNull())
|
||||
{
|
||||
action->setData(userData);
|
||||
}
|
||||
connect(action, SIGNAL(triggered(bool)), SLOT(actionTriggered(bool)));
|
||||
m_customTextToActionMap[customText]= action;
|
||||
}
|
||||
|
||||
if (!userData.isNull())
|
||||
{
|
||||
action->setData(userData);
|
||||
}
|
||||
|
||||
this->setupActionLook(action);
|
||||
if (!customText.isEmpty())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user