# HG changeset patch # User Claus Gittinger # Date 904908726 -7200 # Node ID bd21079f40e1100ce717c5ae61430c36995bb3d4 # Parent 2ee26d9ee7c46ce4d9d7624978065e232ed1944c show waitCursor while loading from file. diff -r 2ee26d9ee7c4 -r bd21079f40e1 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 + ] ] ]