diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2023-11-11 16:00:58 +0100 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2023-11-13 01:18:05 +0100 |
commit | 45f5fe188769bdc220752841e6588f9c020672f8 (patch) | |
tree | 6d04cb751eb26b58c3c29639998afa6ada867bd4 /sw | |
parent | e168e20b519885789cfafbb7d4726d5c79bd2aac (diff) |
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.mcnamara@collabora.com>
(cherry picked from commit 87b0196d595d1b78ba38bccc49e2a57d6047bc37)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159243
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/misc/translatelangselect.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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); |