Salome HOME
0022847: [CEA 1408] Regression : in 7.5.1rc1 switching to Paravis to some other modul...
authorvsr <vsr@opencascade.com>
Wed, 21 Jan 2015 11:16:03 +0000 (14:16 +0300)
committervsr <vsr@opencascade.com>
Wed, 21 Jan 2015 11:16:03 +0000 (14:16 +0300)
src/PVGUI/PVGUI_Module.cxx

index a2445ae97784ce240393d46af67b14e466675eaf..9cc23a3a2a3d2c582d79c3c44e5eb40eaca28665 100644 (file)
@@ -367,14 +367,14 @@ void PVGUI_Module::initialize( CAM_Application* app )
   LightApp_Application* anApp = getApp();
   SUIT_Desktop* aDesktop = anApp->desktop();
 
+  // Remember current state of desktop toolbars
+  QList<QToolBar*> foreignToolbars = aDesktop->findChildren<QToolBar*>();
+
   // Initialize ParaView client and associated behaviors
   // and connect to externally launched pvserver
   PVViewer_ViewManager::ParaviewInitApp(aDesktop, anApp->logWindow());
   myGuiElements = PVViewer_GUIElements::GetInstance(aDesktop);
 
-  // Remember current state of desktop toolbars
-  QList<QToolBar*> foreignToolbars = aDesktop->findChildren<QToolBar*>();
-
   // [ABN]: careful with the order of the GUI element creation, the loading of the configuration
   // and the connection to the server. This order is very sensitive if one wants to make
   // sure all menus, etc ... are correctly populated.