Skip to content

Commit

Permalink
Merge pull request #1087 from mathildemerle/registrationEmptyTlbx
Browse files Browse the repository at this point in the history
[Registration] selector toolbox empty connect --master
  • Loading branch information
Florent2305 authored Jan 27, 2023
2 parents d689f19 + 5c1f835 commit 3794cb2
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,17 @@ medAbstractData *medRegistrationSelectorToolBox::movingData(void)
void medRegistrationSelectorToolBox::changeCurrentToolBox(int index)
{
medSelectorToolBox::changeCurrentToolBox(index);

connect (currentToolBox(), SIGNAL (success()),this,SLOT(enableSelectorToolBox()));
connect (currentToolBox(), SIGNAL (failure()),this,SLOT(enableSelectorToolBox()));

d->nameOfCurrentAlgorithm = this->comboBox()->itemData(index).toString();

if (!d->undoRedoProcess && !d->undoRedoToolBox)
if (currentToolBox())
{
connect(currentToolBox(), SIGNAL(success()), this, SLOT(handleOutput()));
connect (currentToolBox(), SIGNAL (success()),this,SLOT(enableSelectorToolBox()));
connect (currentToolBox(), SIGNAL (failure()),this,SLOT(enableSelectorToolBox()));

if (!d->undoRedoProcess && !d->undoRedoToolBox)
{
connect(currentToolBox(), SIGNAL(success()), this, SLOT(handleOutput()));
}
}
}

Expand Down

0 comments on commit 3794cb2

Please sign in to comment.