if ( vtkwnd ) {
int nbSel = selected.Extent();
if (nbSel != 1){
+ SUIT_MessageBox::warn1(desktop(),
+ tr("SMESH_WRN_WARNING"),
+ tr("SMESH_WRN_NO_AVAILABLE_DATA"),
+ tr("SMESH_BUT_OK"));
break;
}
}
SMESH::RepaintCurrentView();
}
- }else{
+ }
+ else{
SUIT_MessageBox::warn1(desktop(),
tr("SMESH_WRN_WARNING"),
tr("SMESH_WRN_VIEWER_VTK"),
}
updateObjBrowser();
- }catch(const SALOME::SALOME_Exception & S_ex){
+ }
+ catch(const SALOME::SALOME_Exception & S_ex){
SalomeApp_Tools::QtCatchCorbaException(S_ex);
}
}
}
}
}
+ else if(nbSel==0) {
+ SUIT_MessageBox::warn1(desktop(),
+ tr("SMESH_WRN_WARNING"),
+ tr("SMESH_WRN_NO_AVAILABLE_DATA"),
+ tr("SMESH_BUT_OK"));
+ }
break;
}
msgid "SMESH_WRN_EMPTY_NAME"
msgstr "Empty name is not valid"
+#Not available data
+msgid "SMESH_WRN_NO_AVAILABLE_DATA"
+msgstr "No available data in selection"
+
#Smesh polyedre cretion error
msgid "SMESH_POLYEDRE_CREATE_ERROR"
msgstr "Polyedron creation error"