From: abn Date: Wed, 18 Mar 2015 10:17:23 +0000 (+0100) Subject: Minor: removed fixAnimationScene() which is actually not needed. X-Git-Tag: V7_6_0a1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=81d0b41479a7455bddaf3f17bae51a8d4b260ee8;p=modules%2Fparavis.git Minor: removed fixAnimationScene() which is actually not needed. --- diff --git a/src/PVGUI/PVGUI_Module.cxx b/src/PVGUI/PVGUI_Module.cxx index 54abb5bf..f7a5860b 100644 --- a/src/PVGUI/PVGUI_Module.cxx +++ b/src/PVGUI/PVGUI_Module.cxx @@ -441,20 +441,6 @@ void PVGUI_Module::initialize( CAM_Application* app ) } } } - fixAnimationScene(); -} - -/*! - * Little trick to force the proper update of the timesteps/time range when the module is initialized. - * This is otherwise not properly working when PARAVIS is activated after a PVViewer has already been - * instanciated. - */ -void PVGUI_Module::fixAnimationScene() -{ - pqServer* server = pqActiveObjects::instance().activeServer(); - pqApplicationCore * app = pqApplicationCore::instance(); - pqPipelineSource * src = app->getObjectBuilder()->createSource(QString("sources"), QString("TimeSource"),server); - app->getObjectBuilder()->destroy(src); } /*!