mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-25 17:00:35 +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>
|
||||||
<message>
|
<message>
|
||||||
<source>DEP_OBJECT</source>
|
<source>DEP_OBJECT</source>
|
||||||
<translation>Selected object has been used to create another one.
|
<translation>One or more selected objects are used to create another ones or referenced from other modules.
|
||||||
It can't be deleted </translation>
|
Removal of these objects can result in valid Python dump.
|
||||||
|
|
||||||
|
Do you still want to delete these objects?</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>DEVIDE_EDGE_NEW_OBJECT_NAME</source>
|
<source>DEVIDE_EDGE_NEW_OBJECT_NAME</source>
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>DEP_OBJECT</source>
|
<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>
|
Il n'est pas possible de le supprimer </translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
|
@ -543,10 +543,12 @@ void GEOMToolsGUI::OnEditDelete()
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// GEOM component is not selected: check if selected objects are in use
|
// GEOM component is not selected: check if selected objects are in use
|
||||||
if ( inUse( aStudy, geomComp, allDeleted ) ) {
|
if ( inUse( aStudy, geomComp, allDeleted ) &&
|
||||||
SUIT_MessageBox::warning( app->desktop(),
|
SUIT_MessageBox::question( app->desktop(),
|
||||||
QObject::tr("WRN_WARNING"),
|
QObject::tr("WRN_WARNING"),
|
||||||
QObject::tr("DEP_OBJECT") );
|
QObject::tr("DEP_OBJECT"),
|
||||||
|
SUIT_MessageBox::Yes | SUIT_MessageBox::No,
|
||||||
|
SUIT_MessageBox::No ) != SUIT_MessageBox::Yes ) {
|
||||||
return; // object(s) in use
|
return; // object(s) in use
|
||||||
}
|
}
|
||||||
// ... and then delete all objects
|
// ... and then delete all objects
|
||||||
|
Loading…
Reference in New Issue
Block a user