mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
Revert "fix:edit dictionaries dialog ,memory consume too much"
This reverts commit c9d053d227
.
This commit is contained in:
parent
c8284297dd
commit
0040724b6f
|
@ -2050,10 +2050,8 @@ void MainWindow::editDictionaries( unsigned editDictionaryGroup )
|
|||
closeHeadwordsDialog();
|
||||
closeFullTextSearchDialog();
|
||||
|
||||
// the full index does not have to wait until this function invoked.
|
||||
|
||||
// ftsIndexing.stopIndexing();
|
||||
// ftsIndexing.clearDictionaries();
|
||||
ftsIndexing.stopIndexing();
|
||||
ftsIndexing.clearDictionaries();
|
||||
|
||||
wordFinder.clear();
|
||||
dictionariesUnmuted.clear();
|
||||
|
@ -2110,14 +2108,14 @@ void MainWindow::editDictionaries( unsigned editDictionaryGroup )
|
|||
makeScanPopup();
|
||||
installHotKeys();
|
||||
|
||||
// for( unsigned x = 0; x < dictionaries.size(); x++ )
|
||||
// {
|
||||
// dictionaries[ x ]->setFTSParameters( cfg.preferences.fts );
|
||||
// dictionaries[ x ]->setSynonymSearchEnabled( cfg.preferences.synonymSearchEnabled );
|
||||
// }
|
||||
for( unsigned x = 0; x < dictionaries.size(); x++ )
|
||||
{
|
||||
dictionaries[ x ]->setFTSParameters( cfg.preferences.fts );
|
||||
dictionaries[ x ]->setSynonymSearchEnabled( cfg.preferences.synonymSearchEnabled );
|
||||
}
|
||||
|
||||
// ftsIndexing.setDictionaries( dictionaries );
|
||||
// ftsIndexing.doIndexing();
|
||||
ftsIndexing.setDictionaries( dictionaries );
|
||||
ftsIndexing.doIndexing();
|
||||
}
|
||||
|
||||
void MainWindow::editCurrentGroup()
|
||||
|
|
Loading…
Reference in a new issue