From e3ffea6ea6c88a3b47222350d96b5f52ac85a3c7 Mon Sep 17 00:00:00 2001 From: jixiaoxu Date: Wed, 30 Jun 2021 09:03:00 +0800 Subject: [PATCH] Fix a bug(break->continue) --- libsearch/appsearch/app-match.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libsearch/appsearch/app-match.cpp b/libsearch/appsearch/app-match.cpp index 4668447..8ad8d31 100644 --- a/libsearch/appsearch/app-match.cpp +++ b/libsearch/appsearch/app-match.cpp @@ -297,14 +297,14 @@ void AppMatch::appNameMatch(QMap &installed) { QString shouzimu = pinyinlist.at(2 * i + 1); // 中文转首字母 if(shouzimu.contains(m_sourceText, Qt::CaseInsensitive)) { installed.insert(name, list); - continue; + break; } if(m_sourceText.size() < 2) - continue; + break; QString pinyin = pinyinlist.at(2 * i); // 中文转拼音 if(pinyin.contains(m_sourceText, Qt::CaseInsensitive)) { installed.insert(name, list); - continue; + break; } } }