#BUGFIX by exept
authorClaus Gittinger <cg@exept.de>
Sat, 07 Sep 2019 13:55:35 +0200
changeset 6692 dbab793e5a16
parent 6691 55c1d529288d
child 6693 255471ec01a1
#BUGFIX by exept class: DialogBox changed: #doAccept did not correctly accept fields (accept: instead of accept)
DialogBox.st
--- a/DialogBox.st	Wed Sep 04 23:27:56 2019 +0200
+++ b/DialogBox.st	Sat Sep 07 13:55:35 2019 +0200
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 1994 by Claus Gittinger
 	      All Rights Reserved
@@ -11441,11 +11439,14 @@
     autoAccept ifTrue:[    
         addedComponents notNil ifTrue:[
             addedComponents do:[:aComponent |
-                (aComponent respondsTo:#acceptIsUserAction:) ifTrue:[
-                    aComponent acceptIsUserAction:false.
-                ] ifFalse:[                       
-                    (aComponent respondsTo:#accept:) ifTrue:[
+                [
+                    aComponent acceptIsUserAction:false
+                ] on:MessageNotUnderstood do:[:ex |
+                    ex selector == #acceptIsUserAction: ifFalse:[ex reject].
+                    [
                         aComponent accept
+                    ] on:MessageNotUnderstood do:[:ex |
+                        ex selector == #accept ifFalse:[ex reject].
                     ]
                 ]
             ]