error of opening a GUI Painter on a sub spec with empty fields fixed
authortz
Sat, 21 Feb 1998 19:24:50 +0100
changeset 657 34728d455e7b
parent 656 21fe350cfa06
child 658 05282b2363d4
error of opening a GUI Painter on a sub spec with empty fields fixed
UIPainter.st
--- a/UIPainter.st	Sat Feb 21 19:07:24 1998 +0100
+++ b/UIPainter.st	Sat Feb 21 19:24:50 1998 +0100
@@ -2211,12 +2211,12 @@
         spec majorKey isNil ifTrue:[
             ^ self warn:'Cannot find class (no majorKey specified)'.
         ].
-        ^ self warn:'Cannot find class'.
+        ^ self warn:'Cannot find class ', spec majorKey asBoldText, '!!'.
     ].
     sel := spec minorKey.
     meta := cls class whichClassIncludesSelector:sel.
     meta isNil ifTrue:[
-        ^ self warn:'Cannot find ''', sel, ''' in class ''', cls name, ''''
+        ^ self warn:'Cannot find selector #', (sel ? '') asBoldText, ' in class ', cls name asBoldText, '!!'
     ].
 
     self class openOnClass:meta soleInstance andSelector:spec minorKey.
@@ -3321,7 +3321,6 @@
     spec := WindowSpec new.
 
     spec fromView:(self canvas topView) callBack:nil.
-    spec name:(listOfNodes at:1) name string.
 
     windowSpec notNil ifTrue:[
         spec copyValuesFromSpec:windowSpec