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

New commits:
commit 7cde7927fa19a9a79daecf93694426d271a7c2af
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Sat Nov 11 16:00:58 2023 +0100
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Mon Nov 13 12:22:17 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/+/159244
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/sw/source/ui/misc/translatelangselect.cxx 
b/sw/source/ui/misc/translatelangselect.cxx
index b8fd0718e7d3..2df2e98e364c 100644
--- a/sw/source/ui/misc/translatelangselect.cxx
+++ b/sw/source/ui/misc/translatelangselect.cxx
@@ -122,6 +122,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