From: tbaudier Date: Fri, 2 Dec 2016 10:35:01 +0000 (+0100) Subject: Remove signal/slot connection bug with Profile tool X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=30133023f12212c84e7b4e9318f1055ec3176af1;p=clitk.git Remove signal/slot connection bug with Profile tool The bug occured after a click on Cancel during image selection --- diff --git a/vv/vvToolProfile.cxx b/vv/vvToolProfile.cxx index 6ebe144..e0ebdf1 100644 --- a/vv/vvToolProfile.cxx +++ b/vv/vvToolProfile.cxx @@ -363,6 +363,8 @@ void vvToolProfile::RemoveVTKObjects() { if (mCurrentSlicerManager) { + connect(mCurrentSlicerManager, SIGNAL(callAddLandmark(float,float,float,float)), mCurrentSlicerManager, SLOT(AddLandmark(float,float,float,float))); + for(int i=0;iGetNumberOfSlicers(); i++) { mCurrentSlicerManager->GetSlicer(i)->GetRenderer()->RemoveActor(mLineActors[i]); } @@ -382,8 +384,7 @@ void vvToolProfile::RemoveVTKObjects() bool vvToolProfile::close() { //RemoveVTKObjects(); - - connect(mCurrentSlicerManager, SIGNAL(callAddLandmark(float,float,float,float)), mCurrentSlicerManager, SLOT(AddLandmark(float,float,float,float))); + return vvToolWidgetBase::close(); } //------------------------------------------------------------------------------