Don't treat folders with recognized dictionary extensions as dictionaries

For example, it makes no sense trying to initialize Test.dsl folder
as DSL dictionary.
This commit is contained in:
Tvangeste 2013-09-20 18:24:59 +02:00
parent c7b04526d2
commit eb6ddfe5e4

View file

@ -112,7 +112,8 @@ void LoadDictionaries::handlePath( Config::Path const & path )
handlePath( Config::Path( fullName, true ) );
}
allFiles.push_back( FsEncoding::encode( QDir::toNativeSeparators( fullName ) ) );
if ( !i->isDir() )
allFiles.push_back( FsEncoding::encode( QDir::toNativeSeparators( fullName ) ) );
}
{