}
QList<Translation*> XdxfPlugin::searchWordList(QString word, int limit) {
- if(_settings->value("cached") == "true")
+ //if(_settings->value("cached") == "true")
+ if(isCached())
return searchWordListCache(word,limit);
return searchWordListFile(word, limit);
}
}
QString XdxfPlugin::search(QString key) {
- if(_settings->value("cached") == "true")
+// if(_settings->value("cached") == "true")
+ if(isCached())
return searchCache(key);
return searchFile(key);
}
bool XdxfPlugin::isCached()
{
+ if(_settings->value("cached") == "true")
+ return true;
return false;
}
!normalized[i].isSpace() &&
!normalized[i].isDigit() &&
normalized[i] != '*' &&
- normalized[i] != '%') {
+ normalized[i] != '%' &&
+ normalized[i] != '_' &&
+ normalized[i] != '?' ) {
normalized.remove(i,1);
}
}