summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-01-22 14:48:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-01-23 07:17:38 +0100
commit4cee40936ef39a61c56779e6059e79e7ea6b3961 (patch)
tree3c4fd33f15a403c44e09ffcf6117804c1b13b3b0 /sw/source/uibase/shells
parent13a11632014ccc27199667c6a1e313f8ff616d6d (diff)
make diagram dialog async
Change-Id: I26ec71ab5b00545a2e173dd4cc3dcd49d79c2fa7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162417 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/shells')
-rw-r--r--sw/source/uibase/shells/drwbassh.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sw/source/uibase/shells/drwbassh.cxx b/sw/source/uibase/shells/drwbassh.cxx
index 979f63a14369..d4f169992534 100644
--- a/sw/source/uibase/shells/drwbassh.cxx
+++ b/sw/source/uibase/shells/drwbassh.cxx
@@ -462,10 +462,15 @@ void SwDrawBaseShell::Execute(SfxRequest const &rReq)
else // SID_EDIT_DIAGRAM
{
VclAbstractDialogFactory* pFact = VclAbstractDialogFactory::Create();
- ScopedVclPtr<VclAbstractDialog> pDlg = pFact->CreateDiagramDialog(
+ VclPtr<VclAbstractDialog> pDlg = pFact->CreateDiagramDialog(
GetView().GetFrameWeld(),
*static_cast<SdrObjGroup*>(pObj));
- pDlg->Execute();
+ pDlg->StartExecuteAsync(
+ [pDlg] (sal_Int32 /*nResult*/)->void
+ {
+ pDlg->disposeOnce();
+ }
+ );
}
}
}