summaryrefslogtreecommitdiff
path: root/cui/source/customize
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-03-22 10:33:19 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-03-22 12:41:08 +0100
commit17fa95839c8942412c9fa2338eb271ae48401980 (patch)
treec3a33df25e43d240d05f7512e03a38a9415ba38e /cui/source/customize
parentd937c6d08ba5bae97c7cd4b9f950969339edebac (diff)
Related: tdf#124196 fix parent-wait crash in customize dialog
always within welded dialogs now Change-Id: If3d7adc54e8c65e164c9edce0a2f1dddd3d63e8f Reviewed-on: https://gerrit.libreoffice.org/69550 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source/customize')
-rw-r--r--cui/source/customize/acccfg.cxx14
1 files changed, 3 insertions, 11 deletions
diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx
index 8d5e509ec1f7..83ded12b470f 100644
--- a/cui/source/customize/acccfg.cxx
+++ b/cui/source/customize/acccfg.cxx
@@ -1311,9 +1311,7 @@ IMPL_LINK_NOARG(SfxAcceleratorConfigPage, TimeOut_Impl, Timer*, void)
{
// activating the selection, typically "all commands", can take a long time
// -> show wait cursor and disable input
- weld::Window* pDialog = GetDialogFrameWeld();
- // perhaps the tabpage is part of a SingleTabDialog then pDialog == nullptr
- std::unique_ptr<weld::WaitObject> xWait(pDialog ? new weld::WaitObject(pDialog) : nullptr);
+ weld::WaitObject aWaitObject(GetDialogFrameWeld());
weld::TreeView& rTreeView = m_xGroupLBox->get_widget();
SelectHdl(rTreeView);
@@ -1330,7 +1328,7 @@ IMPL_LINK_NOARG(SfxAcceleratorConfigPage, LoadHdl, sfx2::FileDialogHelper*, void
if ( sCfgName.isEmpty() )
return;
- GetTabDialog()->EnterWait();
+ weld::WaitObject aWaitObject(GetDialogFrameWeld());
uno::Reference<ui::XUIConfigurationManager> xCfgMgr;
uno::Reference<embed::XStorage> xRootStorage; // we must hold the root storage alive, if xCfgMgr is used!
@@ -1387,11 +1385,8 @@ IMPL_LINK_NOARG(SfxAcceleratorConfigPage, LoadHdl, sfx2::FileDialogHelper*, void
}
catch(const uno::Exception&)
{}
-
- GetTabDialog()->LeaveWait();
}
-
IMPL_LINK_NOARG(SfxAcceleratorConfigPage, SaveHdl, sfx2::FileDialogHelper*, void)
{
assert(m_pFileDlg);
@@ -1403,7 +1398,7 @@ IMPL_LINK_NOARG(SfxAcceleratorConfigPage, SaveHdl, sfx2::FileDialogHelper*, void
if ( sCfgName.isEmpty() )
return;
- GetTabDialog()->EnterWait();
+ weld::WaitObject aWaitObject(GetDialogFrameWeld());
uno::Reference<embed::XStorage> xRootStorage;
@@ -1469,11 +1464,8 @@ IMPL_LINK_NOARG(SfxAcceleratorConfigPage, SaveHdl, sfx2::FileDialogHelper*, void
}
catch(const uno::Exception&)
{}
-
- GetTabDialog()->LeaveWait();
}
-
void SfxAcceleratorConfigPage::StartFileDialog( StartFileDialogType nType, const OUString& rTitle )
{
bool bSave = nType == StartFileDialogType::SaveAs;