From c4a74a9db4db206c6ef7a15b837d887494ddcf59 Mon Sep 17 00:00:00 2001 From: Eric Winger Date: Tue, 21 Aug 2018 13:05:56 -0700 Subject: [PATCH] Fixes #81 - Change browser walkback the changes browser is a hack and will be replaced. If we get an error trying to find a change in our image, just put up a nice dialog box saying the change cannot be browsed instead. --- sources/Rowan UI Base.pax | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sources/Rowan UI Base.pax b/sources/Rowan UI Base.pax index 32751fea..19722125 100644 --- a/sources/Rowan UI Base.pax +++ b/sources/Rowan UI Base.pax @@ -2327,9 +2327,15 @@ browseChangedThing selection := operationListPresenter selectionOrNil. selection isNil ifTrue: [^MessageBox notify: 'Nothing to browse']. selection isRemoval ifTrue: [^MessageBox notify: 'Cannot browse a removed item']. + + [classService := RowanClassService named: selection className. shell := JadeiteProjectsSystemBrowser showOnSession: gciSession. - classService := RowanClassService named: selection className. - shell currentCard updateServices: (Array with: classService). + shell currentCard updateServices: (Array with: classService)] + on: Error + do: + [:ex | + shell destroy. + MessageBox notify: 'The change you have selected cannot be browsed']. shell currentCard updateAfterFindClass: classService! operationSelected