ImageEditor.st
changeset 980 bd21079f40e1
parent 976 abd5f51e3e64
child 982 2dda94c7ff25
--- 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
+            ]
         ]
     ]