show waitCursor while loading from file.
--- a/ImageEditor.st Fri Sep 04 13:31:11 1998 +0200
+++ b/ImageEditor.st Fri Sep 04 13:32:06 1998 +0200
@@ -1465,17 +1465,19 @@
|img|
- (imageEditView loadFromFile: aFileName) notNil ifTrue:[
- (img := self image) notNil ifTrue:[
- img colorMap notNil ifTrue:[
- self listOfColors contents:(img usedColors asSet asOrderedCollection).
+ self withCursor:Cursor wait do:[
+ (imageEditView loadFromFile: aFileName) notNil ifTrue:[
+ (img := self image) notNil ifTrue:[
+ img colorMap notNil ifTrue:[
+ self listOfColors contents:(img usedColors asSet asOrderedCollection).
+ ] ifFalse:[
+ self listOfColors removeAll.
+ ].
+ self findColorMapMode.
+ self updateLabelsAndHistory.
] ifFalse:[
- self listOfColors removeAll.
- ].
- self findColorMapMode.
- self updateLabelsAndHistory.
- ] ifFalse:[
- self updateForNoneImage
+ self updateForNoneImage
+ ]
]
]