error on enter in ComboBoxList gets the items from the upper menues
authorpenk
Fri, 07 Feb 2003 10:47:14 +0100
changeset 4530 d44a82caf67e
parent 4529 134c48ecdef5
child 4531 c4783f6dfd7a
error on enter in ComboBoxList gets the items from the upper menues temporary fixed to avoid errors
FilenameEditFieldV2.st
--- a/FilenameEditFieldV2.st	Thu Feb 06 18:20:52 2003 +0100
+++ b/FilenameEditFieldV2.st	Fri Feb 07 10:47:14 2003 +0100
@@ -217,10 +217,12 @@
                                 self editor contents:dir name.
                                 completitionList := matchSet asList.
                                 self action:[: string |  | newFile |
-                                    newFile := string asFilename.
-                                    (newFile name endsWith:newFile separator) ifFalse:[
-                                        self editor contents:(newFile name copyWith:newFile separator)
-                                    ].
+                                    string isString ifTrue:[
+                                        newFile := string asFilename.
+                                        (newFile name endsWith:newFile separator) ifFalse:[
+                                            self editor contents:(newFile name copyWith:newFile separator)
+                                        ].
+                                    ]
                                 ].
                                 self pullMenu.
                                 completitionList := nil.
@@ -307,5 +309,5 @@
 !FilenameEditFieldV2 class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libtool/FilenameEditFieldV2.st,v 1.3 2002-12-12 16:07:43 penk Exp $'
+    ^ '$Header: /cvs/stx/stx/libtool/FilenameEditFieldV2.st,v 1.4 2003-02-07 09:47:14 penk Exp $'
 ! !