Commit b4befed2 authored by millerjv's avatar millerjv
Browse files

BUG: Force a call to Exit() at the start of Enter() to release previous...

BUG: Force a call to Exit() at the start of Enter() to release previous widgets incase two calls to Enter() occur without a call to Exit()

git-svn-id: http://svn.slicer.org/Slicer4/trunk@13340 3bd1e089-480b-0410-8dfb-8563597acbee
parent a1d928b6
......@@ -728,6 +728,12 @@ void vtkSlicerSlicesGUI::ProcessMRMLEvents ( vtkObject *caller,
//---------------------------------------------------------------------------
void vtkSlicerSlicesGUI::Enter ( )
{
// Call Exit() to remove any previous widgets. Sometimes Enter() is
// called multiple times without an intervening call to Exit()
this->Exit();
//std::cout << "Enter()" << std::endl;
// Need to pack a set of controllers for the SliceGUIs
//
......@@ -872,6 +878,8 @@ vtkSlicerSlicesGUI::BuildSliceController(vtkSlicerSliceGUI *g)
//---------------------------------------------------------------------------
void vtkSlicerSlicesGUI::Exit ( )
{
// std::cout << "Exit()" << std::endl;
// Destroy all SliceControllers and make a new list of the remainders
ParameterWidgetMap *newMap = new ParameterWidgetMap;
ParameterWidgetMap::iterator wit;
......
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