]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Try 1
authorAnthony Geay <anthony.geay@edf.fr>
Thu, 24 Aug 2017 09:20:14 +0000 (11:20 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Thu, 24 Aug 2017 09:20:14 +0000 (11:20 +0200)
src/PVViewer/PVViewer_Core.cxx

index 8f9abaafc193d6f6ffddc06ee47182c3900d3c3e..993d6b2491b6bde69bd47655a74e2e79cfe0e5c9 100644 (file)
@@ -65,7 +65,7 @@ bool PVViewer_Core::ParaviewInitApp(QMainWindow * aDesktop, LogWindow * logWindo
       char** argv = 0;
       QString aOptions = getenv("PARAVIEW_OPTIONS");
       QStringList aOptList = aOptions.split(":", QString::SkipEmptyParts);
-      argv = new char*[aOptList.size() + 1];
+      argv = new char*[aOptList.size() + 2];
       QStringList args = QApplication::arguments();
       argv[0] = (args.size() > 0)? strdup(args[0].toLatin1().constData()) : strdup("paravis");
       argc++;
@@ -74,6 +74,7 @@ bool PVViewer_Core::ParaviewInitApp(QMainWindow * aDesktop, LogWindow * logWindo
         argv[argc] = strdup( aStr.toLatin1().constData() );
         argc++;
       }
+      argv[argc++] = strdup("--multi-servers");
       MyCoreApp = new pqPVApplicationCore (argc, argv);
       if (MyCoreApp->getOptions()->GetHelpSelected() ||
           MyCoreApp->getOptions()->GetUnknownArgument() ||