diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2019-04-17 17:33:10 +0200 |
---|---|---|
committer | Szymon Kłos <eszkadev@gmail.com> | 2020-05-27 16:22:33 +0200 |
commit | 14ef4875b3b4ccacd4846d564de08d368e9fabbd (patch) | |
tree | af0de3f36f82b1608900d7edbabc89ad497afe84 /vcl | |
parent | 29264f05460e5e81e12a5eeb0121385b6661c656 (diff) |
Fix test UI_chart
Sync chart wizard code with master
Change-Id: I4ab2cbfa9efd3caca3c7951150b7daa3a133b634
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/wizardmachine.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/vcl/source/control/wizardmachine.cxx b/vcl/source/control/wizardmachine.cxx index 839c43e81842..2b3397573612 100644 --- a/vcl/source/control/wizardmachine.cxx +++ b/vcl/source/control/wizardmachine.cxx @@ -1153,11 +1153,17 @@ namespace vcl { if ( isTravelingSuspended() ) return; - WizardTravelSuspension aTravelGuard( *this ); - if (!prepareLeaveCurrentState(WizardTypes::eFinish)) + + // prevent WizardTravelSuspension from using this instance + // after will be destructed due to onFinish and async response call { - return; + WizardTravelSuspension aTravelGuard( *this ); + if (!prepareLeaveCurrentState(WizardTypes::eFinish)) + { + return; + } } + onFinish(); } |