#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Thu, 07 Jun 2018 11:09:34 +0200
changeset 5787 d46575b1220c
parent 5786 463541b7bca9
child 5788 120902ad9fc8
#BUGFIX by cg class: MenuPanel::Item changed: #activeHelpText
MenuPanel.st
--- a/MenuPanel.st	Thu Jun 07 11:05:12 2018 +0200
+++ b/MenuPanel.st	Thu Jun 07 11:09:34 2018 +0200
@@ -7148,7 +7148,7 @@
      Here, a few attributes are tried as fallback key,
      in case no activeHelpKey was defined in the menuSpec.
      As a last fallback, the raw label is returned,
-     which might help if the item is an iconic item.
+     iff the displayLabel is empty; this might help if the item is an iconic item.
      This should actually be FIXED by adding an activeHelpKey,
      and therefore, a warning is generated if running in the IDE."
 
@@ -7200,10 +7200,14 @@
             ].    
         ].
     ].
-
-    ^ text ? rawLabel
-
-    "Modified (comment): / 07-06-2018 / 11:04:11 / Claus Gittinger"
+    text isNil ifTrue:[
+        displayLabel isEmptyOrNil ifTrue:[
+            ^ rawLabel
+        ].    
+    ].    
+    ^ text
+
+    "Modified: / 07-06-2018 / 11:08:44 / Claus Gittinger"
 !
 
 activeHelpText:aText