]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
First Render view only into SALOME
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 5 Apr 2023 06:08:35 +0000 (08:08 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Wed, 5 Apr 2023 06:08:35 +0000 (08:08 +0200)
src/SPV3D/SPV3D_ViewModel.cxx
src/Session/SALOME_Session_Server.cxx

index dfab79f242ba40cea9ef05a8d30debc3078dac4c..e2ab71e3ebc639d81f12db4cb826122dac86b349 100644 (file)
@@ -110,8 +110,8 @@ SUIT_ViewWindow* SPV3D_ViewModel::createView( SUIT_Desktop* theDesktop )
   for(auto i = 0 ; i < argc ; ++i)
     argv[i] = strdup(args[i].toStdString().c_str());
   argv[argc] = nullptr;
-  pqPVApplicationCore appPV(argc,argv);
-  QApplication::instance()->installEventFilter(&appPV);
+  pqPVApplicationCore *appPV = new pqPVApplicationCore(argc,argv);
+  QApplication::instance()->installEventFilter(appPV);
   new pqParaViewBehaviors(aViewWindow,aViewWindow);
   pqObjectBuilder *builder(pqApplicationCore::instance()->getObjectBuilder());
   QObject::connect(builder, &pqObjectBuilder::sourceCreated, this, &SPV3D_ViewModel::onSourceCreated);
index 876289b1b2ec56384e09efdfc4bbb40cbfb2ee01..2d02db84be153fea611656185223ab487fd2a1e1 100644 (file)
@@ -495,6 +495,7 @@ int AbstractGUIAppMain(int argc, char **argv)
 
   // Create Qt application instance: this should be done as early as possible!
   // Note: QApplication forces setting locale LC_ALL to system one: setlocale(LC_ALL, "").
+  SetArgcArgv(argc,argv);
   Application app(argc, argv);
 
   // Initialize Python (only once)