Skip to content

Commit

Permalink
[PolygonRoi] clear deactivating the tlbx (medInria#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathildemerle authored Feb 12, 2024
1 parent 1857de8 commit 8cc507c
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions src/plugins/legacy/polygonRoi/toolboxes/polygonRoiToolBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,8 @@ void polygonRoiToolBox::clickClosePolygon(bool state)
{
if (!state)
{
pMedToolBox->hide();
for (baseViewEvent *event : viewEventHash.values())
{
event->removeViewInteractor();
disconnect(event->getCurrentView(), SIGNAL(selectedRequest(bool)), this, SLOT(onDataIndexActivated()));
disconnect(event->getCurrentView(), SIGNAL(layerRemoved(medAbstractData *)), this, SLOT(onLayerRemoved(medAbstractData *)));
}
clear();
updateView();
}
else
{
Expand All @@ -413,13 +408,13 @@ void polygonRoiToolBox::clickClosePolygon(bool state)
{
viewEventHash.values().first()->getCurrentView()->selectedRequest(true);
}
saveBinaryMaskButton->setEnabled(state);
saveContourButton->setEnabled(state);
saveLabel->setEnabled(state);
interpolate->setEnabled(state);
repulsorTool->setEnabled(state);
repulsorLabel->setEnabled(state);
}
saveBinaryMaskButton->setEnabled(state);
saveContourButton->setEnabled(state);
saveLabel->setEnabled(state);
interpolate->setEnabled(state);
repulsorTool->setEnabled(state);
repulsorLabel->setEnabled(state);
}

void polygonRoiToolBox::activateRepulsor(bool state)
Expand Down

0 comments on commit 8cc507c

Please sign in to comment.