From: dbv Date: Tue, 6 Dec 2016 14:11:03 +0000 (+0300) Subject: Issue #1005: To improve user-friendship of error-messages for features and attributes X-Git-Tag: before_porting_8.2.0~36 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5499e11cdbb225b631a0f84f1b3a99965717306e;p=modules%2Fshaper.git Issue #1005: To improve user-friendship of error-messages for features and attributes Fix for crash when start Wire feature. --- diff --git a/src/ModuleBase/ModuleBase_WidgetAction.h b/src/ModuleBase/ModuleBase_WidgetAction.h index 9003a91a4..f65e1d83a 100755 --- a/src/ModuleBase/ModuleBase_WidgetAction.h +++ b/src/ModuleBase/ModuleBase_WidgetAction.h @@ -38,7 +38,13 @@ Q_OBJECT /// \return Context for translation virtual std::string context() const { - return myFeature->getKind() + ":" + myActionID; + std::string aContext = myFeatureId; + if(!aContext.empty() && !myActionID.empty()) { + aContext += ":"; + } + aContext += myActionID; + + return aContext; } protected: