mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-25 08:50:36 +05:00
0021935: [CEA 696] Possibility to delete an object even if it was used before to create another one
This commit is contained in:
parent
9c34f9e0a4
commit
d331308a89
@ -29,8 +29,10 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>DEP_OBJECT</source>
|
||||
<translation>Selected object has been used to create another one.
|
||||
It can't be deleted </translation>
|
||||
<translation>One or more selected objects are used to create another ones or referenced from other modules.
|
||||
Removal of these objects can result in valid Python dump.
|
||||
|
||||
Do you still want to delete these objects?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>DEVIDE_EDGE_NEW_OBJECT_NAME</source>
|
||||
|
@ -29,7 +29,7 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>DEP_OBJECT</source>
|
||||
<translation>L'objet choisi a été utilisé pour créer un autre objet.
|
||||
<translation type="unfinished">L'objet choisi a été utilisé pour créer un autre objet.
|
||||
Il n'est pas possible de le supprimer </translation>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -543,10 +543,12 @@ void GEOMToolsGUI::OnEditDelete()
|
||||
}
|
||||
else {
|
||||
// GEOM component is not selected: check if selected objects are in use
|
||||
if ( inUse( aStudy, geomComp, allDeleted ) ) {
|
||||
SUIT_MessageBox::warning( app->desktop(),
|
||||
QObject::tr("WRN_WARNING"),
|
||||
QObject::tr("DEP_OBJECT") );
|
||||
if ( inUse( aStudy, geomComp, allDeleted ) &&
|
||||
SUIT_MessageBox::question( app->desktop(),
|
||||
QObject::tr("WRN_WARNING"),
|
||||
QObject::tr("DEP_OBJECT"),
|
||||
SUIT_MessageBox::Yes | SUIT_MessageBox::No,
|
||||
SUIT_MessageBox::No ) != SUIT_MessageBox::Yes ) {
|
||||
return; // object(s) in use
|
||||
}
|
||||
// ... and then delete all objects
|
||||
|
Loading…
Reference in New Issue
Block a user