From 81d0b41479a7455bddaf3f17bae51a8d4b260ee8 Mon Sep 17 00:00:00 2001 From: abn Date: Wed, 18 Mar 2015 11:17:23 +0100 Subject: [PATCH] Minor: removed fixAnimationScene() which is actually not needed. --- src/PVGUI/PVGUI_Module.cxx | 14 -------------- 1 file changed, 14 deletions(-) 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); } /*! -- 2.39.2