MenuEditor.st
changeset 3664 0d01da886d5a
parent 3636 197a2fbb8c5d
child 3751 5c7bb0559dc1
--- a/MenuEditor.st	Tue May 14 09:46:21 2019 +0200
+++ b/MenuEditor.st	Fri May 17 16:59:23 2019 +0200
@@ -1763,18 +1763,17 @@
 !
 
 hasNonLinkedMenuSelectedHolder
-    "boolean holder, true if a single non linked menu item is selected
-    "
+    "boolean holder, true if a single non linked menu item is selected"
+
     ^ BlockValue
-        with:[:m | 
-                |items| 
-
-                items := self selectionHolder value.
-                (items size == 1) 
-                and:[items first isKindOfNonLinkedMenu
-                and:[items first isRootItem not]]
+        with:[:selection | 
+                (selection size == 1) 
+                 and:[selection first isKindOfNonLinkedMenu
+                 and:[selection first isRootItem not]]
              ]
         argument:(self selectionHolder)
+
+    "Modified: / 17-05-2019 / 16:18:19 / Stefan Vogel"
 !
 
 hasSelectionChannel