Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/NewTools-MethodBrowsers/StMethodBrowser.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,11 @@ StMethodBrowser >> initializePresenters [
StMethodBrowser >> initializeWindow: aWindowPresenter [

super initializeWindow: aWindowPresenter.
aWindowPresenter whenClosedDo: [ TestCase historyAnnouncer unsubscribe: methodList ].

aWindowPresenter whenWillCloseDo: [ :ann |
textPresenter isDirty ifTrue: [
(self application confirm: 'Changes have not been saved.
Is it OK to discard changes?') ifFalse: [ ann denyClose ] ] ].
aWindowPresenter whenClosedDo: [ TestCase historyAnnouncer unsubscribe: methodList ]
]

{ #category : 'private' }
Expand Down
Loading