Salome HOME
Issue #19094: Non-translation of filters on groups in SHAPER
[modules/shaper.git] / src / ModuleBase / ModuleBase_ModelWidget.cpp
index b3bc3a10023057c429026ab5aa3e9f286a403564..e232d1d89614d7d7288dc413ced7e09cd379af70 100644 (file)
@@ -191,7 +191,6 @@ QString ModuleBase_ModelWidget::getError(const bool theValueStateChecked) const
   if (!feature().get())
     return anError;
 
-  std::string aFeatureID = feature()->getKind();
   std::string anAttributeID = attributeID();
   AttributePtr anAttribute = feature()->attribute(anAttributeID);
   if (!anAttribute.get())
@@ -206,7 +205,7 @@ QString ModuleBase_ModelWidget::getError(const bool theValueStateChecked) const
       anErrorMsg = "Unknown error.";
 
     if (anErrorMsg.context().empty()) {
-      anErrorMsg.setContext(aFeatureID + ":" + anAttributeID + ":" + aValidatorID);
+      anErrorMsg.setContext(context() + ":" + aValidatorID);
     }
   }