From: imn Date: Wed, 5 Mar 2014 08:55:14 +0000 (+0400) Subject: Forum: Warning Dialog in "Create Group" doesn't disappear X-Git-Tag: V7_4_0a1~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ece8933d2efb23d9866a479d43d3b8a04b2aea7b;p=modules%2Fgeom.git Forum: Warning Dialog in "Create Group" doesn't disappear --- diff --git a/src/GroupGUI/GroupGUI_GroupDlg.cxx b/src/GroupGUI/GroupGUI_GroupDlg.cxx index 464bee9e5..70e1b8308 100644 --- a/src/GroupGUI/GroupGUI_GroupDlg.cxx +++ b/src/GroupGUI/GroupGUI_GroupDlg.cxx @@ -787,12 +787,16 @@ int GroupGUI_GroupDlg::getSelectedSubshapes (TColStd_IndexedMapOfInteger& theMap TopExp::MapShapes(aMainShape, aMainMap); TopExp_Explorer anExp (aShape, getShapeType()); + bool isShowWarning = true; for (; anExp.More(); anExp.Next()) { TopoDS_Shape aSubShape = anExp.Current(); int anIndex = aMainMap.FindIndex(aSubShape); if (anIndex == 0) { - SUIT_MessageBox::warning(app->desktop(), QObject::tr("WRN_WARNING"), + if (isShowWarning) { + SUIT_MessageBox::warning(app->desktop(), QObject::tr("WRN_WARNING"), tr("WRN_NOT_SUBSHAPE")); + isShowWarning = false; + } } else { if (subSelectionWay() != ALL_SUBSHAPES &&