Skip to content

Commit

Permalink
Merge pull request #1924 from xiaoyifang/opt/tab-blank
Browse files Browse the repository at this point in the history
opt: dictionary tab switch will show blank widget when source changing.
  • Loading branch information
xiaoyifang authored Nov 8, 2024
2 parents f6434f4 + 59f9b3d commit d3ad40f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/editdictionaries.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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()
{
Expand Down

0 comments on commit d3ad40f

Please sign in to comment.