Skip to content

Commit 4282a08

Browse files
committed
fixes ToSkinStateGenerator>>closedEvent:
1 parent 292817f commit 4282a08

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/Toplo-Widget-List/ToListDisabledSelectionElementEventHandler.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ ToListDisabledSelectionElementEventHandler >> listDisabledSelectionChangedEvent:
4141
listElement requestUpdateSelectionMode:
4242
listElement primarySelectionMode.
4343
postponedCommand := nil.
44-
touchedIndexes removeAll ].
44+
touchedIndexes reset ].
4545
listElement postponeCommand: postponedCommand
4646
]

src/Toplo/ToSkinStateGenerator.class.st

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,8 @@ ToSkinStateGenerator >> clickEvent: anEvent [
9898

9999
{ #category : #'window event handling' }
100100
ToSkinStateGenerator >> closedEvent: anEvent [
101-
" directly dispatch the skin event to allow the hnadling of the closed window
102-
(with a closing animation as an example ) "
103101

104-
target isAttachedToSceneGraph ifFalse: [ ^ self ].
105-
target skinManagerDo: [ :sm |
106-
target dispatchEvent: (ToClosedSkinEvent sourceEvent: anEvent) ]
102+
self enqueueTransientState: (ToClosedSkinEvent sourceEvent: anEvent)
107103
]
108104

109105
{ #category : #'dnd handlers' }

0 commit comments

Comments
 (0)