Slicer: 2145-support-for-installing-extension-from-file 88e1471f

Author Committer Branch Timestamp Parent
finetjul finetjul 2145-support-for-installing-extension-from-file 2013-07-21 21:59:16 2145-support-for-installing-extension-from-file 01b92c4c
Affected Issues 0003152: Slicer crashes with "Close Scene" and "Application Settings Cancel"
Changeset

BUG: Fix units when reloading scenes

Restoring the selection node unit references shall not just be done when
closing scene, but also when loading or restoring a scene.
To simplify, it should be done anytime the selection node is modified.
When Clear() is called, singletons are reset, which means they loose their
node references. Which should trigger a ModifiedEvent (see next commit)
that is caught by the unit logic that can restore the unit references.

Fixes 0003152

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22222 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Modules/Loadable/Units/Logic/vtkSlicerUnitsLogic.cxx Diff File
mod - Modules/Loadable/Units/Logic/vtkSlicerUnitsLogic.h Diff File
mod - Modules/Loadable/Units/Testing/Cxx/CMakeLists.txt Diff File
mod - Modules/Loadable/Units/Testing/Cxx/vtkSlicerUnitsLogicTest1.cxx Diff File