Close dictionary headwords dialog before configuration change

This commit is contained in:
Abs62 2014-04-10 18:00:12 +04:00
parent d21701785a
commit f70724b9a8

View file

@ -1781,6 +1781,7 @@ void MainWindow::editDictionaries( unsigned editDictionaryGroup )
{
hotkeyWrapper.reset(); // No hotkeys while we're editing dictionaries
scanPopup.reset(); // No scan popup either. No one should use dictionaries.
closeHeadwordsDialog();
wordFinder.clear();
dictionariesUnmuted.clear();
@ -1843,6 +1844,7 @@ void MainWindow::editPreferences()
{
hotkeyWrapper.reset(); // So we could use the keys it hooks
scanPopup.reset(); // No scan popup either. No one should use dictionaries.
closeHeadwordsDialog();
Preferences preferences( this, cfg.preferences );
@ -3201,6 +3203,7 @@ void MainWindow::on_rescanFiles_triggered()
{
hotkeyWrapper.reset(); // No hotkeys while we're editing dictionaries
scanPopup.reset(); // No scan popup either. No one should use dictionaries.
closeHeadwordsDialog();
groupInstances.clear(); // Release all the dictionaries they hold
dictionaries.clear();