XdxfPlugin::searchWordList() update: '_' and '%' wildcarts
authorPiotrek <ppilar11@gmail.com>
Mon, 16 Aug 2010 09:47:51 +0000 (11:47 +0200)
committerPiotrek <ppilar11@gmail.com>
Mon, 16 Aug 2010 09:47:51 +0000 (11:47 +0200)
trunk/src/plugins/xdxf/src/xdxfplugin.cpp

index 48db52b..85379c6 100644 (file)
@@ -68,7 +68,8 @@ QString XdxfPlugin::infoNote() const {
 
 QList<Translation*> XdxfPlugin::searchWordList(QString word, int limit) {
     //if(_settings->value("cached") == "true")
-    if(word.indexOf("*")==-1 && word.indexOf("?")==-1)
+    if(word.indexOf("*")==-1 && word.indexOf("?")==-1 && word.indexOf("_")==-1
+       && word.indexOf("%")==-1)
         word+="*";
     if(isCached())
         return searchWordListCache(word,limit);