]> Creatis software - cpPlugins.git/blobdiff - appli/PipelineEditor/PipelineEditor.cxx
...
[cpPlugins.git] / appli / PipelineEditor / PipelineEditor.cxx
index 5751a904d68f776f9a632fff29ea7a7a1da9819f..fec6efdeee90f9f1076b48cb46f8a5543af97de7 100644 (file)
@@ -15,7 +15,6 @@ PipelineEditor( int argc, char* argv[], QWidget* parent )
     m_UI( new Ui::PipelineEditor )
 {
   // Basic configuration
-  this->m_SingleWorkspace = true;
   this->m_BaseWindowTitle = "PipelineEditor - ";
   this->m_UI->setupUi( this );
   this->setCanvas( this->m_UI->Canvas );
@@ -34,14 +33,8 @@ PipelineEditor( int argc, char* argv[], QWidget* parent )
     );
 
   // Load command-line given workspace (if any)
-  this->m_ActiveWS = "empty";
   if( argc > 1 )
-  {
     this->_loadWorkspace( argv[ 1 ] );
-    this->m_ActiveWS = argv[ 1 ];
-  }
-  else
-    this->_addWorkspace( this->m_ActiveWS );
 }
 
 // -------------------------------------------------------------------------
@@ -70,7 +63,7 @@ _slotView( const std::string& name, bool show )
   {
     try
     {
-      auto ws = this->workspace( this->m_ActiveWS );
+      auto ws = this->workspace( );
       auto filter = ws->GetFilter( filter_name );
       cpBaseQtApplication_Execute( filter->Update( ) );
       auto image = filter->GetOutputData< vtkImageData >( output_name );