]> Creatis software - cpPlugins.git/blobdiff - lib/cpBaseQtApplication/MainWindow.cxx
Windows compilation 3/3
[cpPlugins.git] / lib / cpBaseQtApplication / MainWindow.cxx
index 8e1abab90018474c27aec881ea7ae4888c7018b3..f8ac71ad118762a584da6459736ac0587d0a94db 100644 (file)
@@ -70,9 +70,9 @@ MainWindow( int argc, char* argv[], QApplication* app, QWidget* parent )
 
   // Get the plugins interface
   this->m_Plugins = TPlugins::New( );
-  try { this->m_Plugins->OpenEnvironments( env.str( ) ); } catch( ... ) { }
-  try { this->m_Plugins->SaveEnvironments( this->m_RunPath ); } catch( ... ) { }
+  try { this->m_Plugins->AddEnvironments( env.str( ) ); } catch( ... ) { }
   this->updateEnvironment( );
+  try { this->m_Plugins->SavePaths( this->m_RunPath ); } catch( ... ) { }
 
   // Create local workspace
   this->m_Workspace = TWorkspace::New( );
@@ -347,7 +347,7 @@ void cpBaseQtApplication::MainWindow::
 _addEnvironmentPaths( const std::string& envs )
 {
   try { this->m_Plugins->AddEnvironments( envs ); } catch( ... ) { }
-  try { this->m_Plugins->SaveEnvironments( this->m_RunPath ); } catch( ... ) { }
+  try { this->m_Plugins->SavePaths( this->m_RunPath ); } catch( ... ) { }
   this->updateEnvironment( );
   this->_updatePlugins( );
 }