diff --git a/loaddictionaries.cc b/loaddictionaries.cc index 1f47c027..c4e43e28 100644 --- a/loaddictionaries.cc +++ b/loaddictionaries.cc @@ -348,12 +348,14 @@ void loadDictionaries( QWidget * parent, bool showInitially, for( QStringList::const_iterator i = allIdxFiles.constBegin(); i != allIdxFiles.constEnd(); ++i ) { - if ( ids.find( FsEncoding::encode( *i ) ) == ids.end() && - i->size() == 32 ) - { + if ( ids.find( FsEncoding::encode( *i ) ) == ids.end() + && i->size() == 32 ) + indexDir.remove( *i ); + else + if ( i->endsWith( "_FTS" ) + && i->size() == 36 + && ids.find( FsEncoding::encode( i->left( 32 ) ) ) == ids.end() ) indexDir.remove( *i ); - indexDir.remove( *i + "_FTS" ); - } } // Run deferred inits