From 2d188986a47e3bc3bee983b942b960fbd6e58d03 Mon Sep 17 00:00:00 2001 From: Henry Castro Date: Mon, 5 Mar 2018 09:03:10 -0400 Subject: lokdialog: more, convert the dialog to async exec ClassificationDialog -> To trigger this dialog: enable TSCP Classification toolbar click toolbar item "Classification Dialog" SwWatermarkDialog -> To trigger this dialog: Format -> Watermark... SwWatermarkDialog --- Obs: the ClassificationDialog is not implemented in cp-5.3 branch Change-Id: I835648df8df5ad3ee5a404a582c2179e5b3b276a Reviewed-on: https://gerrit.libreoffice.org/50771 Tested-by: Jenkins Reviewed-by: Henry Castro Reviewed-on: https://gerrit.libreoffice.org/50784 Reviewed-by: Jan Holesovsky Tested-by: Jan Holesovsky --- sw/source/uibase/app/docsh2.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sw/source/uibase/app/docsh2.cxx b/sw/source/uibase/app/docsh2.cxx index afcd25351308..469239160b26 100644 --- a/sw/source/uibase/app/docsh2.cxx +++ b/sw/source/uibase/app/docsh2.cxx @@ -1185,9 +1185,8 @@ void SwDocShell::Execute(SfxRequest& rReq) { SfxViewShell* pViewShell = GetView()? GetView(): SfxViewShell::Current(); SfxBindings& rBindings( pViewShell->GetViewFrame()->GetBindings() ); - ScopedVclPtr pDlg( VclPtr::Create( nullptr, rBindings ) ); - pDlg->Execute(); - pDlg.disposeAndClear(); + VclPtr pDlg(VclPtr::Create(&GetView()->GetViewFrame()->GetWindow(), rBindings)); + pDlg->StartExecuteAsync([](sal_Int32 /*nResult*/){}); } } } -- cgit