From ad1f33d1cd725abdc5d10e8ef7a0638711b10a2b Mon Sep 17 00:00:00 2001 From: dmv Date: Tue, 20 Jan 2009 08:11:40 +0000 Subject: [PATCH] Implement for GEOM 0020002: EDF 821 --- src/GEOMToolsGUI/GEOMToolsGUI.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/GEOMToolsGUI/GEOMToolsGUI.cxx b/src/GEOMToolsGUI/GEOMToolsGUI.cxx index 54bd97439..4945b72e8 100644 --- a/src/GEOMToolsGUI/GEOMToolsGUI.cxx +++ b/src/GEOMToolsGUI/GEOMToolsGUI.cxx @@ -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; } -- 2.39.2