sw/source/uibase/dochdl/gloshdl.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 9a96f11eb0a8e439166df88e01b75d8248d5ebfd
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sat Nov 2 15:55:14 2024 +0000
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Wed Nov 6 16:17:32 2024 +0100

    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.mcnam...@collabora.com>

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;

Reply via email to