[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.3' - sw/source
Michael Meeks
michael.meeks at collabora.com
Thu Apr 26 18:39:31 UTC 2018
sw/source/uibase/shells/textsh.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 108bbd078c7b91fabc8cb2eb1976fe8973493193
Author: Michael Meeks <michael.meeks at collabora.com>
Date: Thu Apr 26 19:08:53 2018 +0100
Use async dialog path for format columns.
Change-Id: I7097abd68b5921697d1d5f39f5e81ac961b61226
Reviewed-on: https://gerrit.libreoffice.org/53539
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/sw/source/uibase/shells/textsh.cxx b/sw/source/uibase/shells/textsh.cxx
index ca6dc13eaf39..3d0172219d11 100644
--- a/sw/source/uibase/shells/textsh.cxx
+++ b/sw/source/uibase/shells/textsh.cxx
@@ -531,10 +531,10 @@ void SwTextShell::ExecInsert(SfxRequest &rReq)
case FN_FORMAT_COLUMN :
{
SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
- OSL_ENSURE(pFact, "Dialog creation failed!");
- ScopedVclPtr<VclAbstractDialog> pColDlg(pFact->CreateVclAbstractDialog( GetView().GetWindow(), rSh, DLG_COLUMN));
- OSL_ENSURE(pColDlg, "Dialog creation failed!");
- pColDlg->Execute();
+ OSL_ENSURE(pFact && "Dialog creation failed!");
+ VclPtr<VclAbstractDialog> pColDlg(pFact->CreateVclAbstractDialog( GetView().GetWindow(), rSh, DLG_COLUMN));
+ assert(pColDlg && "Dialog creation failed!");
+ pColDlg->StartExecuteAsync([](sal_Int32 /*nResult*/){});
}
break;
More information about the Libreoffice-commits
mailing list