]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1005: To improve user-friendship of error-messages for features and attributes
authordbv <dbv@opencascade.com>
Tue, 6 Dec 2016 14:11:03 +0000 (17:11 +0300)
committerdbv <dbv@opencascade.com>
Tue, 6 Dec 2016 14:11:22 +0000 (17:11 +0300)
Fix for crash when start Wire feature.

src/ModuleBase/ModuleBase_WidgetAction.h

index 9003a91a41e798c722aa5a442391cd470e4e9116..f65e1d83ada64656252b66cd8a9107c50bd7faa2 100755 (executable)
@@ -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: