sw/source/ui/misc/translatelangselect.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 45f5fe188769bdc220752841e6588f9c020672f8
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Sat Nov 11 16:00:58 2023 +0100
Commit:     Adolfo Jayme Barrientos <fit...@ubuntu.com>
CommitDate: Mon Nov 13 01:18:05 2023 +0100

    tdf#158171: fix crash when double-clicking DeepL translation dialog OK 
button
    
    Change-Id: I4954357c59c7134d882fb19e9949ecbd5d60345a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159322
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    (cherry picked from commit 87b0196d595d1b78ba38bccc49e2a57d6047bc37)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159243
    Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com>

diff --git a/sw/source/ui/misc/translatelangselect.cxx 
b/sw/source/ui/misc/translatelangselect.cxx
index 8036cd11dec3..4de844e04343 100644
--- a/sw/source/ui/misc/translatelangselect.cxx
+++ b/sw/source/ui/misc/translatelangselect.cxx
@@ -127,6 +127,8 @@ IMPL_LINK_NOARG(SwTranslateLangSelectDlg, 
LangSelectCancelHdl, weld::Button&, vo
 
 IMPL_LINK_NOARG(SwTranslateLangSelectDlg, LangSelectTranslateHdl, 
weld::Button&, void)
 {
+    if (m_bTranslationStarted)
+        return;
     if (SwTranslateLangSelectDlg::selectedLangIdx == -1)
     {
         m_xDialog->response(RET_CANCEL);

Reply via email to