Kaydet (Commit) 1b199900 authored tarafından Szymon Kłos's avatar Szymon Kłos

tdf#122748 Don't restore previous language selection

Change-Id: I8688c65695080804bae22209ed5d4890ced1a8dc
Reviewed-on: https://gerrit.libreoffice.org/66678
Tested-by: Jenkins
Reviewed-by: 's avatarSzymon Kłos <szymon.klos@collabora.com>
üst 820a3b52
......@@ -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);
}
......
......@@ -196,7 +196,7 @@ private:
void AddToDictionaryExecute( sal_uInt16 ItemId, PopupMenu const *pMenu );
void StartSpellOptDlg_Impl();
int InitUserDicts();
void UpdateBoxes_Impl();
void UpdateBoxes_Impl(bool bCallFromSelectHdl = false);
void Init_Impl();
void SpellContinue_Impl(bool UseSavedSentence = false, bool bIgnoreCurrentError = false );
void LockFocusChanges( bool bLock ) {bFocusLocked = bLock;}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment