UIPainterView.st
changeset 760 ca9488ba9876
parent 758 1370f99f4c09
child 768 2ef5b8bed914
--- a/UIPainterView.st	Wed Apr 01 11:35:57 1998 +0200
+++ b/UIPainterView.st	Wed Apr 01 16:46:35 1998 +0200
@@ -1235,9 +1235,11 @@
 select:something
     "change selection to something
     "
-    (self enabled and:[something ~= self selection]) ifTrue:[
-        treeView cvsSelection:something.
-        self setSelection:something withRedraw:true.
+    (self enabled and:[something ~= self selection]) ifTrue:[   
+        something isNil 
+            ifTrue: [treeView selection: (Array with: 1)]
+            ifFalse:[treeView cvsSelection:something].
+        self setSelection:something withRedraw:true
     ]
 
 !