diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-11-02 15:55:14 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-11-06 16:17:32 +0100 |
commit | 9a96f11eb0a8e439166df88e01b75d8248d5ebfd (patch) | |
tree | b50c8627e149f590bcb8b03248b4292c9b971c5f | |
parent | 18a9092d7b9a9f4e7ee9203770423e50fa01d626 (diff) |
make the autotext shortcut warning dialog async
Change-Id: I8fb0e61d48400d001cf6a3918c638bc087723288
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175985
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r-- | sw/source/uibase/dochdl/gloshdl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/dochdl/gloshdl.cxx b/sw/source/uibase/dochdl/gloshdl.cxx index 7706bf899b80..f6866e4b38a3 100644 --- a/sw/source/uibase/dochdl/gloshdl.cxx +++ b/sw/source/uibase/dochdl/gloshdl.cxx @@ -476,10 +476,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; |