From 7440aef5f1bcc32d34002f157868a7f6c0d7c03f Mon Sep 17 00:00:00 2001 From: rnv Date: Thu, 9 Jun 2016 18:07:17 +0300 Subject: [PATCH] Implementation of the "0023270: [CEA 1822] PARAVIS GUI widgets should be instanciated only when needed" feature. --- src/PVGUI/PVGUI_Module_widgets.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/PVGUI/PVGUI_Module_widgets.cxx b/src/PVGUI/PVGUI_Module_widgets.cxx index 4eb1835c..4e1fef2e 100644 --- a/src/PVGUI/PVGUI_Module_widgets.cxx +++ b/src/PVGUI/PVGUI_Module_widgets.cxx @@ -56,6 +56,8 @@ #include #include #include +#include +#include #include #include @@ -238,6 +240,11 @@ void PVGUI_Module::setupDockWidgets() animationViewDock->setObjectName("animationViewDock"); desk->addDockWidget( Qt::BottomDockWidgetArea, animationViewDock ); pqPVAnimationWidget* animation_panel = new ResizeHelper(animationViewDock); // [ABN] was resizeHelper + + // RNV: Emit signal in order to make sure that animation scene is set + emit pqPVApplicationCore::instance()->animationManager()->activeSceneChanged( + pqPVApplicationCore::instance()->animationManager()->getActiveScene()); + animationViewDock->setWidget(animation_panel); myDockWidgets[animationViewDock] = false; // hidden by default -- 2.39.2