diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-01-22 14:48:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-01-23 07:17:38 +0100 |
commit | 4cee40936ef39a61c56779e6059e79e7ea6b3961 (patch) | |
tree | 3c4fd33f15a403c44e09ffcf6117804c1b13b3b0 /sd/source | |
parent | 13a11632014ccc27199667c6a1e313f8ff616d6d (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 'sd/source')
-rw-r--r-- | sd/source/ui/view/drviews3.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sd/source/ui/view/drviews3.cxx b/sd/source/ui/view/drviews3.cxx index a4e375890014..73edca29dd5e 100644 --- a/sd/source/ui/view/drviews3.cxx +++ b/sd/source/ui/view/drviews3.cxx @@ -503,10 +503,15 @@ void DrawViewShell::ExecCtrl(SfxRequest& rReq) else // SID_EDIT_DIAGRAM { VclAbstractDialogFactory* pFact = VclAbstractDialogFactory::Create(); - ScopedVclPtr<VclAbstractDialog> pDlg = pFact->CreateDiagramDialog( + VclPtr<VclAbstractDialog> pDlg = pFact->CreateDiagramDialog( GetFrameWeld(), *static_cast<SdrObjGroup*>(pObj)); - pDlg->Execute(); + pDlg->StartExecuteAsync( + [pDlg] (sal_Int32 /*nResult*/)->void + { + pDlg->disposeOnce(); + } + ); } } } |