diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-01-31 10:07:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-01-31 12:06:28 +0100 |
commit | 8291b91f84930a8034093c94bf68b94babf9c391 (patch) | |
tree | 1fd4344dd57bce4ffdeed5af2f5a29c2100facca /sw | |
parent | 9667ea7e274c4e29cf7c35d9e124a8fbcb2af3da (diff) |
make footnote-option dialog async
Change-Id: I1f04b98ac8a804aa74b4b6be335c088649ef8547
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162790
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/uiview/view0.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/view0.cxx b/sw/source/uibase/uiview/view0.cxx index 2a27bd95b5a9..70c9882e0d2e 100644 --- a/sw/source/uibase/uiview/view0.cxx +++ b/sw/source/uibase/uiview/view0.cxx @@ -744,8 +744,13 @@ void SwView::ExecViewOptions(SfxRequest &rReq) void SwView::ExecFormatFootnote() { SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create(); - ScopedVclPtr<VclAbstractDialog> pDlg(pFact->CreateSwFootNoteOptionDlg(GetFrameWeld(), GetWrtShell())); - pDlg->Execute(); + VclPtr<VclAbstractDialog> pDlg(pFact->CreateSwFootNoteOptionDlg(GetFrameWeld(), GetWrtShell())); + pDlg->StartExecuteAsync( + [pDlg] (sal_Int32 /*nResult*/)->void + { + pDlg->disposeOnce(); + } + ); } void SwView::ExecNumberingOutline(SfxItemPool & rPool) |