]> Creatis software - cpPlugins.git/blobdiff - lib/cpBaseQtApplication/MainWindow.cxx
...
[cpPlugins.git] / lib / cpBaseQtApplication / MainWindow.cxx
index 67a3844aaa3641fdf40cbef029ace9cce8fd1a2d..60cdc20ad5913d68ee0f9da041bd38410dc5bf37 100644 (file)
@@ -71,9 +71,9 @@ MainWindow( int argc, char* argv[], QApplication* app, QWidget* parent )
   // Get the plugins interface
   this->m_Plugins = TPlugins::New( );
   try { this->m_Plugins->AddEnvironments( env.str( ) ); } catch( ... ) { }
-  try { this->m_Plugins->OpenEnvironments( env.str( ) ); } catch( ... ) { }
-  try { this->m_Plugins->SaveEnvironments( this->m_RunPath ); } catch( ... ) { }
+  try { this->m_Plugins->LoadPaths( this->m_RunPath ); } catch( ... ) { }
   this->updateEnvironment( );
+  try { this->m_Plugins->SavePaths( this->m_RunPath ); } catch( ... ) { }
 
   // Create local workspace
   this->m_Workspace = TWorkspace::New( );
@@ -348,7 +348,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( );
 }