mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
Close dictionary headwords dialog before configuration change
This commit is contained in:
parent
d21701785a
commit
f70724b9a8
|
@ -1781,6 +1781,7 @@ void MainWindow::editDictionaries( unsigned editDictionaryGroup )
|
||||||
{
|
{
|
||||||
hotkeyWrapper.reset(); // No hotkeys while we're editing dictionaries
|
hotkeyWrapper.reset(); // No hotkeys while we're editing dictionaries
|
||||||
scanPopup.reset(); // No scan popup either. No one should use dictionaries.
|
scanPopup.reset(); // No scan popup either. No one should use dictionaries.
|
||||||
|
closeHeadwordsDialog();
|
||||||
|
|
||||||
wordFinder.clear();
|
wordFinder.clear();
|
||||||
dictionariesUnmuted.clear();
|
dictionariesUnmuted.clear();
|
||||||
|
@ -1843,6 +1844,7 @@ void MainWindow::editPreferences()
|
||||||
{
|
{
|
||||||
hotkeyWrapper.reset(); // So we could use the keys it hooks
|
hotkeyWrapper.reset(); // So we could use the keys it hooks
|
||||||
scanPopup.reset(); // No scan popup either. No one should use dictionaries.
|
scanPopup.reset(); // No scan popup either. No one should use dictionaries.
|
||||||
|
closeHeadwordsDialog();
|
||||||
|
|
||||||
Preferences preferences( this, cfg.preferences );
|
Preferences preferences( this, cfg.preferences );
|
||||||
|
|
||||||
|
@ -3201,6 +3203,7 @@ void MainWindow::on_rescanFiles_triggered()
|
||||||
{
|
{
|
||||||
hotkeyWrapper.reset(); // No hotkeys while we're editing dictionaries
|
hotkeyWrapper.reset(); // No hotkeys while we're editing dictionaries
|
||||||
scanPopup.reset(); // No scan popup either. No one should use dictionaries.
|
scanPopup.reset(); // No scan popup either. No one should use dictionaries.
|
||||||
|
closeHeadwordsDialog();
|
||||||
|
|
||||||
groupInstances.clear(); // Release all the dictionaries they hold
|
groupInstances.clear(); // Release all the dictionaries they hold
|
||||||
dictionaries.clear();
|
dictionaries.clear();
|
||||||
|
|
Loading…
Reference in a new issue