EditFieldWithCompletion.st
branchjv
changeset 16716 12ac8455e023
parent 16445 6bc184e74f9c
parent 16715 78d44ccf2a1c
child 16729 087537207973
--- a/EditFieldWithCompletion.st	Sat Jun 25 06:59:09 2016 +0200
+++ b/EditFieldWithCompletion.st	Thu Jun 30 07:04:36 2016 +0200
@@ -354,6 +354,7 @@
     
     best := completionInfo first.
     options := completionInfo second.
+    best isNil ifTrue:[self halt ].
 "/    (options includes:best) ifFalse:[
 "/        best := options 
 "/                    detect:[:e | e asString startsWith:best asString ]
@@ -402,7 +403,7 @@
     optionsView := SelectionInListModelView new
                     textStartLeft: textStartLeft - 2;
                     listHolder: optionsHolder;
-                    action:[:value | self contents:value asString ];
+                    action:[:value | value notNil ifTrue:[ self contents:value asString ] ];
                     doubleClickAction:[:index | 
                             self contents:(optionsView at:index) asString.
                             self hideOptionsWindow.