summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/SpellDialog.cxx
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2019-01-21 11:20:19 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2019-01-21 14:39:02 +0100
commit1b1999009962b9d79858139bd7573947f78e6669 (patch)
tree35b7738e0e8b5084ea68475d177490540bd4255c /cui/source/dialogs/SpellDialog.cxx
parent820a3b52f6eb8b620a1430f3574f59e8072777bc (diff)
tdf#122748 Don't restore previous language selection
Change-Id: I8688c65695080804bae22209ed5d4890ced1a8dc Reviewed-on: https://gerrit.libreoffice.org/66678 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'cui/source/dialogs/SpellDialog.cxx')
-rw-r--r--cui/source/dialogs/SpellDialog.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx
index eb2d0ff4655f..f586f0eaf212 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -297,7 +297,7 @@ void SpellDialog::Init_Impl()
LinguMgr::GetChangeAllList()->clear();
}
-void SpellDialog::UpdateBoxes_Impl()
+void SpellDialog::UpdateBoxes_Impl(bool bCallFromSelectHdl)
{
sal_Int32 i;
m_pSuggestionLB->Clear();
@@ -324,7 +324,8 @@ void SpellDialog::UpdateBoxes_Impl()
}
else
SetTitle_Impl( nAltLanguage );
- m_pLanguageLB->SelectLanguage( nAltLanguage );
+ if( !bCallFromSelectHdl )
+ m_pLanguageLB->SelectLanguage( nAltLanguage );
int nDicts = InitUserDicts();
// enter alternatives
@@ -767,7 +768,7 @@ IMPL_LINK(SpellDialog, LanguageSelectHdl, ListBox&, rBox, void)
m_pSentenceED->AddUndoAction(std::make_unique<SpellUndoAction_Impl>(SPELLUNDO_CHANGE_LANGUAGE, aDialogUndoLink));
}
- SpellDialog::UpdateBoxes_Impl();
+ SpellDialog::UpdateBoxes_Impl(true);
}