diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2019-04-17 17:33:10 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-09-28 11:00:00 +0200 |
commit | cb01bb34713f39b55b5994c7a756d95db4a81231 (patch) | |
tree | 3dbc2eec4f64fb88e84bdc5386e574b7101e8bda /svtools/source | |
parent | f5308a09498cde2fc6ab039e17649c5b3ea33e54 (diff) |
Make Chart Creation Wizard async
* FuInsertChart as a memeber in ScTabViewShell
stores instance is needed to react on the dialog's result
* CreationWizardUnoDlg converted to XAsynchronousExecutableDialog
added dialog close handler which notifies listeners
In the Online dialog become dead after closing, additional
PostUserEvent was needed to kill the dialog after real close
(without it user needed to select any cell to close dialog)
* Reuse in Writer
Change-Id: I9fe123d5c189d568f0edb4d36173a224a820a8a3
Reviewed-on: https://gerrit.libreoffice.org/79654
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/dialogs/wizardmachine.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/svtools/source/dialogs/wizardmachine.cxx b/svtools/source/dialogs/wizardmachine.cxx index bf14a0dae2e0..0ec3e014aba3 100644 --- a/svtools/source/dialogs/wizardmachine.cxx +++ b/svtools/source/dialogs/wizardmachine.cxx @@ -669,17 +669,18 @@ namespace svt void OWizardMachine::suspendTraveling( AccessGuard ) { DBG_ASSERT( !m_pImpl->m_bTravelingSuspended, "OWizardMachine::suspendTraveling: already suspended!" ); - m_pImpl->m_bTravelingSuspended = true; + m_pImpl->m_bTravelingSuspended = true; } - void OWizardMachine::resumeTraveling( AccessGuard ) { + if (!m_pImpl) + return; + DBG_ASSERT( m_pImpl->m_bTravelingSuspended, "OWizardMachine::resumeTraveling: nothing to resume!" ); - m_pImpl->m_bTravelingSuspended = false; + m_pImpl->m_bTravelingSuspended = false; } - } // namespace svt |