mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
Merge pull request #1924 from xiaoyifang/opt/tab-blank
opt: dictionary tab switch will show blank widget when source changing.
This commit is contained in:
commit
d3ad40f988
|
@ -200,7 +200,7 @@ void EditDictionaries::acceptChangedSources( bool rebuildGroups )
|
||||||
#ifndef NO_TTS_SUPPORT
|
#ifndef NO_TTS_SUPPORT
|
||||||
cfg.voiceEngines = sources.getVoiceEngines();
|
cfg.voiceEngines = sources.getVoiceEngines();
|
||||||
#endif
|
#endif
|
||||||
ui.tabs->setUpdatesEnabled( false );
|
setUpdatesEnabled( false );
|
||||||
// Those hold pointers to dictionaries, we need to free them.
|
// Those hold pointers to dictionaries, we need to free them.
|
||||||
groupInstances.clear();
|
groupInstances.clear();
|
||||||
|
|
||||||
|
@ -225,7 +225,7 @@ void EditDictionaries::acceptChangedSources( bool rebuildGroups )
|
||||||
connect( groups, &Groups::showDictionaryInfo, this, &EditDictionaries::showDictionaryInfo );
|
connect( groups, &Groups::showDictionaryInfo, this, &EditDictionaries::showDictionaryInfo );
|
||||||
connect( orderAndProps, &OrderAndProps::showDictionaryHeadwords, this, &EditDictionaries::showDictionaryHeadwords );
|
connect( orderAndProps, &OrderAndProps::showDictionaryHeadwords, this, &EditDictionaries::showDictionaryHeadwords );
|
||||||
}
|
}
|
||||||
ui.tabs->setUpdatesEnabled( true );
|
setUpdatesEnabled( true );
|
||||||
}
|
}
|
||||||
EditDictionaries::~EditDictionaries()
|
EditDictionaries::~EditDictionaries()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue