summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-01-25 10:29:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-01-30 17:08:11 +0100
commit93c4bfc96acf7f387120ff05883068d358a608c1 (patch)
tree33e55e442ee32464bce35c20f8e433b085939f4a /sw
parentcd3286cdc79765229d3e58ed35b3866baca9da18 (diff)
make writer databases dialog async
Change-Id: I9f3c3bc3c555ef8a115258ff6d186ceeead3cc99 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162556 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/uiview/view2.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx
index 37402849c4fa..6c9a17967344 100644
--- a/sw/source/uibase/uiview/view2.cxx
+++ b/sw/source/uibase/uiview/view2.cxx
@@ -3048,8 +3048,13 @@ void SwView::GenerateFormLetter(bool bUseCurrentDocument)
if (RET_OK == xWarning->run())
{
SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create();
- ScopedVclPtr<VclAbstractDialog> pDlg(pFact->CreateVclDialog( nullptr, SID_OPTIONS_DATABASES ));
- pDlg->Execute();
+ VclPtr<VclAbstractDialog> pDlg(pFact->CreateVclDialog( nullptr, SID_OPTIONS_DATABASES ));
+ pDlg->StartExecuteAsync(
+ [pDlg] (sal_Int32 /*nResult*/)->void
+ {
+ pDlg->disposeOnce();
+ }
+ );
}
return ;
}