selection order changed (step 2)
authortz
Wed, 01 Apr 1998 16:46:35 +0200
changeset 760 ca9488ba9876
parent 759 f0c325edcc6c
child 761 91e524583390
selection order changed (step 2)
UIPainterView.st
--- 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
     ]
 
 !