From 59f9b3d04fd9dfc20b0a6659b06f5f878e3cb9eb Mon Sep 17 00:00:00 2001 From: xiaoyifang Date: Fri, 8 Nov 2024 09:41:07 +0800 Subject: [PATCH] opt: dictionary tab switch show blank widget when source changed --- src/ui/editdictionaries.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/editdictionaries.cc b/src/ui/editdictionaries.cc index 40d37a5a..01af97e4 100644 --- a/src/ui/editdictionaries.cc +++ b/src/ui/editdictionaries.cc @@ -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() {