forked from openkylin/ukui-search
Merge branch '0607-dev' into 'dev-unity'
Fix a bug(continue->break) See merge request kylin-desktop/ukui-search!48
This commit is contained in:
commit
8f35f1dfa1
|
@ -297,14 +297,14 @@ void AppMatch::appNameMatch(QMap<NameString, QStringList> &installed) {
|
||||||
QString shouzimu = pinyinlist.at(2 * i + 1); // 中文转首字母
|
QString shouzimu = pinyinlist.at(2 * i + 1); // 中文转首字母
|
||||||
if(shouzimu.contains(m_sourceText, Qt::CaseInsensitive)) {
|
if(shouzimu.contains(m_sourceText, Qt::CaseInsensitive)) {
|
||||||
installed.insert(name, list);
|
installed.insert(name, list);
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
if(m_sourceText.size() < 2)
|
if(m_sourceText.size() < 2)
|
||||||
continue;
|
break;
|
||||||
QString pinyin = pinyinlist.at(2 * i); // 中文转拼音
|
QString pinyin = pinyinlist.at(2 * i); // 中文转拼音
|
||||||
if(pinyin.contains(m_sourceText, Qt::CaseInsensitive)) {
|
if(pinyin.contains(m_sourceText, Qt::CaseInsensitive)) {
|
||||||
installed.insert(name, list);
|
installed.insert(name, list);
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue