20,6 → 20,7 |
***************************************************************************/ |
|
#include <iostream> |
|
#include <QDebug> |
#include <QDir> |
#include <QFile> |
1031,15 → 1032,13 |
QStringList dictFilters("*.dic"); |
QStringList dictList(dictLocation.entryList(dictFilters, QDir::Files, QDir::Name)); |
dictList.replaceInStrings(".dic",""); |
dictList.removeDuplicates(); |
|
//Ensure we have aff+dic file pairs, remove any hyphenation dictionaries from the list |
for (const QString& dictName : qAsConst(dictList)) |
{ |
if (!QFile::exists(dictionaryPaths.at(i) + dictName + ".aff")) |
{ |
dictList.removeAll(dictName); |
continue; |
} |
|
if (dictionaryMap.contains(dictName)) |
continue; |