}
else
{
- abortDocOperation();
+ // Abort document opeartion only if requested
+ if ( isToAbortOnApply() )
+ abortDocOperation();
+
printErrorMessage( anErrorMsg );
// If the operation has no input panel - do abort
Handle_HYDROData_Document doc() const;
+ virtual bool isToAbortOnApply() const { return true; }
+
void printErrorMessage( const QString& theErrorMsg );
void setPrintErrorMessage( const bool theIsPrint );
virtual bool processApply( int& theUpdateFlags, QString& theErrorMsg );
+ virtual bool isToAbortOnApply() const { return false; }
+
private slots:
void onAddProfiles();
void onRemoveProfiles( const QStringList& );