]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Implement for GEOM 0020002: EDF 821
authordmv <dmv@opencascade.com>
Tue, 20 Jan 2009 08:11:40 +0000 (08:11 +0000)
committerdmv <dmv@opencascade.com>
Tue, 20 Jan 2009 08:11:40 +0000 (08:11 +0000)
src/GEOMToolsGUI/GEOMToolsGUI.cxx

index 54bd97439a2454f5a5fc79e7a658111cf317636c..4945b72e8406b7fced6c0fb982cea49eac02d761 100644 (file)
@@ -792,6 +792,7 @@ bool GEOMToolsGUI::Export()
 
   SALOME_ListIO selectedObjects;
   sm->selectedObjects( selectedObjects );
+  bool appropriateObj = false;
 
   SALOME_ListIteratorOfListIO It( selectedObjects );
   for(;It.More();It.Next()) {
@@ -838,8 +839,13 @@ bool GEOMToolsGUI::Export()
       anOp->abort();
       return false;
     }
+    appropriateObj = true;
   }
 
+  if ( !appropriateObj )
+    SUIT_MessageBox::warning( app->desktop(),
+                             QObject::tr("WRN_WARNING"),
+                             QObject::tr("GEOM_WRN_NO_APPROPRIATE_SELECTION") );
   return true;
 }