Commit 198220ee authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Fix multiple info strings in search

parent 38a1f1d8
Pipeline #121056 passed with stage
in 5 minutes and 17 seconds
......@@ -112,6 +112,7 @@ void MatchModel::clear()
beginResetModel();
m_matchFiles.clear();
m_matchFileIndexHash.clear();
m_lastMatchUrl.clear();
endResetModel();
}
......@@ -132,15 +133,15 @@ void MatchModel::addMatches(const QUrl &fileUrl, const QVector<KateSearchMatch>
m_infoUpdateTimer.start();
}
if (searchMatches.isEmpty()) {
return;
}
if (m_matchFiles.isEmpty()) {
beginInsertRows(QModelIndex(), 0, 0);
endInsertRows();
}
if (searchMatches.isEmpty()) {
return;
}
int fileIndex = matchFileRow(fileUrl);
if (fileIndex == -1) {
fileIndex = m_matchFiles.size();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment