opt: dictionary tab switch show blank widget when source changed

This commit is contained in:
xiaoyifang 2024-11-08 09:41:07 +08:00 committed by xiaoyifang
parent f6434f4219
commit 59f9b3d04f

View file

@ -200,7 +200,7 @@ void EditDictionaries::acceptChangedSources( bool rebuildGroups )
#ifndef NO_TTS_SUPPORT
cfg.voiceEngines = sources.getVoiceEngines();
#endif
ui.tabs->setUpdatesEnabled( false );
setUpdatesEnabled( false );
// Those hold pointers to dictionaries, we need to free them.
groupInstances.clear();
@ -225,7 +225,7 @@ void EditDictionaries::acceptChangedSources( bool rebuildGroups )
connect( groups, &Groups::showDictionaryInfo, this, &EditDictionaries::showDictionaryInfo );
connect( orderAndProps, &OrderAndProps::showDictionaryHeadwords, this, &EditDictionaries::showDictionaryHeadwords );
}
ui.tabs->setUpdatesEnabled( true );
setUpdatesEnabled( true );
}
EditDictionaries::~EditDictionaries()
{