</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>
</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>
}
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