]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Plugins.cxx
...
[cpPlugins.git] / lib / cpPlugins / Interface / Plugins.cxx
index ece9dd0a5f93762b1be093a9f9a398897042f19e..c5727c29276b423a6915e3dd1b41a8c0d462fb1a 100644 (file)
@@ -342,7 +342,7 @@ ReadImage( const std::string& parent )
   this->_ActivateIOFilter( "ImageReader" );
 
   // Try to configure source
-  if( this->ConfigureActiveFilter( ) == TProcessObject::DialogResult_Cancel )
+  if( !( this->ConfigureActiveFilter( ) ) )
   {
     this->DeactivateFilter( );
     return( "" );
@@ -361,7 +361,7 @@ ReadDicomSeries( const std::string& parent )
   this->_ActivateIOFilter( "DicomSeriesReader" );
 
   // Try to configure source
-  if( this->ConfigureActiveFilter( ) == TProcessObject::DialogResult_Cancel )
+  if( !( this->ConfigureActiveFilter( ) ) )
   {
     this->DeactivateFilter( );
     return( "" );
@@ -395,7 +395,7 @@ ReadMesh( const std::string& parent )
   this->_ActivateIOFilter( "MeshReader" );
 
   // Try to configure source
-  if( this->ConfigureActiveFilter( ) == TProcessObject::DialogResult_Cancel )
+  if( !( this->ConfigureActiveFilter( ) ) )
   {
     this->DeactivateFilter( );
     return( "" );
@@ -455,7 +455,7 @@ WriteDataObject( const std::string& name )
   } // fi
 
   // Try to configure source
-  if( this->ConfigureActiveFilter( ) == TProcessObject::DialogResult_Cancel )
+  if( !( this->ConfigureActiveFilter( ) ) )
   {
     this->DeactivateFilter( );
     return( false );
@@ -656,7 +656,7 @@ ConfigureActiveFilter( )
   if( this->m_ActiveFilter.IsNotNull( ) )
     return( this->m_ActiveFilter->ExecConfigurationDialog( this->m_Widget ) );
   else
-    return( TProcessObject::DialogResult_Cancel );
+    return( false );
 }
 
 // -------------------------------------------------------------------------