sw/source/uibase/dochdl/gloshdl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 01f0f02246d37b74e33d05b0f3a432fbf4a883aa Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sat Nov 2 15:55:14 2024 +0000 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Mon Nov 4 11:48:41 2024 +0100 make the autotext shortcut warning dialog async Change-Id: I8fb0e61d48400d001cf6a3918c638bc087723288 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175950 Reviewed-by: Miklos Vajna <vmik...@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> diff --git a/sw/source/uibase/dochdl/gloshdl.cxx b/sw/source/uibase/dochdl/gloshdl.cxx index b8d0d1277365..cf73a1c62763 100644 --- a/sw/source/uibase/dochdl/gloshdl.cxx +++ b/sw/source/uibase/dochdl/gloshdl.cxx @@ -466,10 +466,10 @@ bool SwGlossaryHdl::Expand(weld::Window* pParent, const OUString& rShortName, } OUString aTmp( SwResId(STR_NOGLOS)); aTmp = aTmp.replaceFirst("%1", aShortName); - std::unique_ptr<weld::MessageDialog> xInfoBox(Application::CreateMessageDialog(m_pWrtShell->GetView().GetFrameWeld(), + std::shared_ptr<weld::MessageDialog> xInfoBox(Application::CreateMessageDialog(m_pWrtShell->GetView().GetFrameWeld(), VclMessageType::Info, VclButtonsType::Ok, aTmp)); - xInfoBox->run(); + xInfoBox->runAsync(xInfoBox, [] (sal_uInt32){ }); } return false;