oops - checkFlags passed wrong arg
authorClaus Gittinger <cg@exept.de>
Mon, 22 Apr 1996 11:44:32 +0200
changeset 568 ba7d2bc390ae
parent 567 a71e9e59537e
child 569 8c460366645e
oops - checkFlags passed wrong arg
PopUpMenu.st
--- a/PopUpMenu.st	Mon Apr 22 10:12:10 1996 +0200
+++ b/PopUpMenu.st	Mon Apr 22 11:44:32 1996 +0200
@@ -605,17 +605,19 @@
     "/
 
     menuView action:[:menuView :selected |
-        |actionIndex value sel retVal args selectors|
+        |actionIndex value sel retVal 
+         args selectors checkFlags|
 
         retVal := 0.
 
         args := menuView args.
         selectors := menuView selectors.
+        checkFlags := menuView checkFlags.
 
         args isNil ifTrue:[
             selectors notNil ifTrue:[
                 sel0 := selectors at:selected.
-            ]
+            ].
         ] ifFalse:[
             actionIndex := args at:selected.
             actionIndex notNil ifTrue:[
@@ -639,9 +641,18 @@
 
                 selectors notNil ifTrue:[
                     sel0 := selectors at:selected.
-                ]
+                ].
             ]
         ].
+
+        checkFlags notNil ifTrue:[
+            arg := checkFlags at:selected.
+            arg notNil ifTrue:[
+                sel1 := sel0.
+                sel0 := nil.
+            ]
+        ].
+
         return := retVal
     ].
 
@@ -670,7 +681,7 @@
     "
 
     "Created: 10.1.1996 / 20:11:42 / cg"
-    "Modified: 7.3.1996 / 18:23:26 / cg"
+    "Modified: 22.4.1996 / 11:13:05 / cg"
 !
 
 startUpWithHeading:aString
@@ -1129,5 +1140,5 @@
 !PopUpMenu class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg/PopUpMenu.st,v 1.45 1996-04-18 11:15:31 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg/PopUpMenu.st,v 1.46 1996-04-22 09:44:32 cg Exp $'
 ! !