mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-13 17:18:36 +05:00
Small code refactoring.
This commit is contained in:
parent
242164f4e0
commit
c531936429
@ -641,21 +641,16 @@ void GEOMToolsGUI_ReduceStudyDlg::clickOnOk()
|
|||||||
objectsToBeUnpublished.insert( *iter );
|
objectsToBeUnpublished.insert( *iter );
|
||||||
}
|
}
|
||||||
if( myGroupIntermediates->checkedId() == 2 ) { // remove
|
if( myGroupIntermediates->checkedId() == 2 ) { // remove
|
||||||
if( myCBSoftRemoval->isChecked() )
|
if( !myCBSoftRemoval->isChecked() &&
|
||||||
for( iter = myListParents.begin(); iter != myListParents.end(); ++iter )
|
SUIT_MessageBox::question( this,
|
||||||
objectsToBeRemoved.insert( *iter );
|
tr( "GEOM_WRN_WARNING" ),
|
||||||
else {
|
tr( "GEOM_REDUCE_STUDY_WARNING_DELETE" ),
|
||||||
if ( SUIT_MessageBox::question( this,
|
QMessageBox::Yes | QMessageBox::No,
|
||||||
tr( "GEOM_WRN_WARNING" ),
|
QMessageBox::Yes ) == QMessageBox::No ) {
|
||||||
tr( "GEOM_REDUCE_STUDY_WARNING_DELETE" ),
|
return;
|
||||||
QMessageBox::Yes | QMessageBox::No,
|
}
|
||||||
QMessageBox::Yes ) == QMessageBox::Yes ) {
|
for( iter = myListParents.begin(); iter != myListParents.end(); ++iter )
|
||||||
for( iter = myListParents.begin(); iter != myListParents.end(); ++iter )
|
objectsToBeRemoved.insert( *iter );
|
||||||
objectsToBeRemoved.insert( *iter );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create lists of sub-objects to be removed or to be unpublished
|
// Create lists of sub-objects to be removed or to be unpublished
|
||||||
|
Loading…
Reference in New Issue
Block a user