summaryrefslogtreecommitdiff
path: root/sc/source/ui/drawfunc
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 /sc/source/ui/drawfunc
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 'sc/source/ui/drawfunc')
-rw-r--r--sc/source/ui/drawfunc/drawsh5.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sc/source/ui/drawfunc/drawsh5.cxx b/sc/source/ui/drawfunc/drawsh5.cxx
index 896e7e42c783..0baff09045cc 100644
--- a/sc/source/ui/drawfunc/drawsh5.cxx
+++ b/sc/source/ui/drawfunc/drawsh5.cxx
@@ -295,10 +295,15 @@ void ScDrawShell::ExecDrawFunc( SfxRequest& rReq )
{
VclAbstractDialogFactory* pFact = VclAbstractDialogFactory::Create();
vcl::Window* pWin = rViewData.GetActiveWin();
- ScopedVclPtr<VclAbstractDialog> pDlg = pFact->CreateDiagramDialog(
+ VclPtr<VclAbstractDialog> pDlg = pFact->CreateDiagramDialog(
pWin ? pWin->GetFrameWeld() : nullptr,
*static_cast<SdrObjGroup*>(pObj));
- pDlg->Execute();
+ pDlg->StartExecuteAsync(
+ [pDlg] (sal_Int32 /*nResult*/)->void
+ {
+ pDlg->disposeOnce();
+ }
+ );
}
}
}