From: rnv Date: Fri, 17 Jun 2016 13:03:03 +0000 (+0300) Subject: 0023270: [CEA 1822] PARAVIS GUI widgets should be instanciated only when needed:... X-Git-Tag: V8_1_0a1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=22e65e9222135f1be6cfcbf6f6c668b49985d969;p=modules%2Fparavis.git 0023270: [CEA 1822] PARAVIS GUI widgets should be instanciated only when needed: Qt4 compatibility. --- diff --git a/src/PVGUI/PVGUI_Module_widgets.cxx b/src/PVGUI/PVGUI_Module_widgets.cxx index 4e1fef2e..8da50c9e 100644 --- a/src/PVGUI/PVGUI_Module_widgets.cxx +++ b/src/PVGUI/PVGUI_Module_widgets.cxx @@ -242,8 +242,9 @@ void PVGUI_Module::setupDockWidgets() 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()); + QMetaObject::invokeMethod( pqPVApplicationCore::instance()->animationManager(), + "activeSceneChanged", + Q_ARG( pqAnimationScene*, pqPVApplicationCore::instance()->animationManager()->getActiveScene() ) ); animationViewDock->setWidget(animation_panel); myDockWidgets[animationViewDock] = false; // hidden by default