changeset 1139:8d2f1b25593c broker

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 07 Nov 2019 09:16:31 +0100
parents 1a73f852810a
children 6333e6f7248e
files Framework/Radiography/RadiographyWidget.cpp
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyWidget.cpp	Thu Nov 07 07:28:39 2019 +0100
+++ b/Framework/Radiography/RadiographyWidget.cpp	Thu Nov 07 09:16:31 2019 +0100
@@ -295,10 +295,7 @@
 
     Register<RadiographyScene::GeometryChangedMessage>(*scene_, &RadiographyWidget::OnGeometryChanged);
     Register<RadiographyScene::ContentChangedMessage>(*scene_, &RadiographyWidget::OnContentChanged);
-
-    scene_->RegisterObserverCallback(
-          new Callable<RadiographyWidget, RadiographyScene::LayerRemovedMessage>
-          (*this, &RadiographyWidget::OnLayerRemoved));
+    Register<RadiographyScene::LayerRemovedMessage>(*scene_, &RadiographyWidget::OnLayerRemoved);
 
     NotifyContentChanged();