UISelectionPanel.st
changeset 1587 91a7b38eb142
parent 1549 345226e6e7d2
child 1602 5a4a97678027
--- a/UISelectionPanel.st	Wed Sep 04 12:27:09 2002 +0200
+++ b/UISelectionPanel.st	Wed Sep 04 12:29:17 2002 +0200
@@ -1586,21 +1586,18 @@
 update:something with:aParameter from:changedObject
     "one of my models changed its value
     "
-    |channel label topView|
+    |channel label|
 
     (channel := self clientSpec) == changedObject ifTrue:[
-        topView := builder window topView.
-
         (label := channel value) notNil ifTrue:[
-            topView label:label name, ' '.
+            label := label name.
         ] ifFalse:[
-            topView label:'Widget Gallery '
-        ]
+            label := 'Widget Gallery'
+        ].
+        builder window topView label:(label , ' ')
     ].
 
     super update:something with:aParameter from:changedObject.
-
-
 ! !
 
 !UISelectionPanel methodsFor:'drag & drop'!