From 2b47c5f295589acb18d4404137c6b72d20f019b6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 8 Jun 2020 15:45:10 +0200 Subject: remove the fake SvxScriptErrorDialog code which just forwards to an async real dialog. Change-Id: I61936c4d105b9829042817e6a3cf5e60c451fb6b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95830 Tested-by: Jenkins Reviewed-by: Noel Grandin --- scripting/source/protocolhandler/scripthandler.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'scripting') diff --git a/scripting/source/protocolhandler/scripthandler.cxx b/scripting/source/protocolhandler/scripthandler.cxx index 74aecbeb1e5c..e55926952f70 100644 --- a/scripting/source/protocolhandler/scripthandler.cxx +++ b/scripting/source/protocolhandler/scripthandler.cxx @@ -261,9 +261,7 @@ void SAL_CALL ScriptProtocolHandler::dispatchWithNotification( if ( bCaughtException ) { SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create(); - ScopedVclPtr pDlg( - pFact->CreateScriptErrorDialog( aException )); - pDlg->Execute(); + pFact->ShowAsyncScriptErrorDialog( nullptr, aException ); } if ( !xListener.is() ) -- cgit