]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/XGUI/XGUI_Tools.cpp
Salome HOME
Merge branch 'BR_internationalization'
[modules/shaper.git] / src / XGUI / XGUI_Tools.cpp
index c0bfb2685b2e6ac858a56ab72cc1714444b527c0..a60b1f2190ac49b646281c1a5fd8f4a8ac93d136 100644 (file)
@@ -18,7 +18,7 @@
 #include <ModelAPI_ResultPart.h>
 #include <ModelAPI_CompositeFeature.h>
 #include <ModelAPI_Tools.h>
-#include <Events_Error.h>
+#include <Events_InfoMessage.h>
 
 #include <GeomAPI_Shape.h>
 
@@ -134,7 +134,7 @@ bool canRename(const ObjectPtr& theObject, const QString& theName)
       QString aErrMsg(QObject::tr("Selected parameter can not be renamed to: %1. \
  There is a parameter with the same name. Its value is: %2.").arg(qPrintable(theName)).arg(aValue));
       // We can not use here a dialog box for message - it will crash editing process in ObjectBrowser
-      Events_Error::send(aErrMsg.toStdString());
+      Events_InfoMessage("XGUI_Tools", aErrMsg.toStdString()).send();
       return false;
     }
   }