+ } else {
+ QStringList aTableNames =
+ HYDROGUI_Tool::FindExistingObjectsNames( doc(), KIND_STRICKLER_TABLE, false );
+ aTableNames += anObjNames;
+ if ( aTableNames.toSet().size() == anObjNames.size() ) {
+ aWarningMsg = tr("DELETE_LAST_TABLE_WRN");
+ }
+ }
+
+ if ( !aWarningMsg.isEmpty() ) {
+ int anAnswer = SUIT_MessageBox::warning( module()->getApp()->desktop(),
+ tr("WARNING"), aWarningMsg,
+ QMessageBox::Yes | QMessageBox::No,
+ QMessageBox::No );
+ if ( anAnswer != QMessageBox::Yes ) {
+ abort();
+ return;
+ }