Fix:Application items cannot be found by using Pinyin and initials when the system language is English.

This commit is contained in:
kirito 2021-09-29 16:58:05 +08:00
parent 1931b8327f
commit e0cb6a46b3
1 changed files with 4 additions and 1 deletions

View File

@ -163,8 +163,11 @@ void AppMatch::appNameMatch(QString keyWord, size_t uniqueSymbol, DataQueue<Sear
} }
} }
if(iter.value().at(3) == ""){
continue;
}
QStringList pinyinlist; QStringList pinyinlist;
pinyinlist = FileUtils::findMultiToneWords(iter.key().app_name); pinyinlist = FileUtils::findMultiToneWords(iter.value().at(3));
bool matched = false; bool matched = false;
for(int i = 0; i < pinyinlist.size() / 2; i++) { for(int i = 0; i < pinyinlist.size() / 2; i++) {