show waitCursor while loading from file.
authorClaus Gittinger <cg@exept.de>
Fri, 04 Sep 1998 13:32:06 +0200
changeset 980 bd21079f40e1
parent 979 2ee26d9ee7c4
child 981 5b3b9588e57d
show waitCursor while loading from file.
ImageEditor.st
--- 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
+            ]
         ]
     ]