From 30133023f12212c84e7b4e9318f1055ec3176af1 Mon Sep 17 00:00:00 2001 From: tbaudier Date: Fri, 2 Dec 2016 11:35:01 +0100 Subject: [PATCH] Remove signal/slot connection bug with Profile tool The bug occured after a click on Cancel during image selection --- vv/vvToolProfile.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(); } //------------------------------------------------------------------------------ -- 2.47.1