Commit 332bd65b authored by finetjul's avatar finetjul

BUG: qSlicerModulesMenu triggers action when current module becomes loaded

If qSlicerModulesMenu::setCurrentModule() is called before the module has
been loaded, qSlicerModulesMenu was not triggering the action which could
result in observers not being notified. (the module selection toolbar)

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21554 3bd1e089-480b-0410-8dfb-8563597acbee
parent 205e331d
......@@ -402,6 +402,7 @@ void qSlicerModulesMenu::addModule(qSlicerAbstractCoreModule* moduleToAdd)
// Maybe the module was set current before it was added into the menu
if (d->CurrentModule == moduleAction->data().toString())
{
moduleAction->trigger();
emit currentModuleChanged(d->CurrentModule);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment