if ( isApplyAndClose() )
theUpdateFlags |= UF_Viewer | UF_GV_Forced | UF_OCCViewer | UF_OCC_Forced;
+ if( isApplyAndClose() )
+ {
+ commitDocOperation(); // to save the modifications in the data model
+ return true;
+ }
if( SetNextFile() )
{
theErrorMsg = "";
- commitDocOperation(); // to save the modifications in the data model
+ module()->updateObjBrowser();
return false; // and to continue the operation
}
+ /*if( myFiles.count() > 1 )
+ {
+ setIsApplyAndClose( true );
+ }*/
return true;
}
if ( !myIsApplyAndClose && inputPanel() )
start();
}
- else
+ else if( !anErrorMsg.isEmpty() )
{
// Abort document opeartion only if requested
if ( isToAbortOnApply() )