Commit f311eff1 authored by Eike Ziller's avatar Eike Ziller Committed by Christian Stenger
Browse files

FileSearch: Fix wrong line number for RegExp search.



Introduced by recent refactoring

Change-Id: Ifb7300549ce1791a90d287d5d8dd66f7d2217755
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent 789f3d6c
......@@ -207,6 +207,7 @@ const FileSearchResultList FileSearchRegExp::operator()(const QString &filePath,
QString line;
while (!stream.atEnd()) {
++lineNr;
line = stream.readLine();
const QString resultItemText = clippedText(line, MAX_LINE_SIZE);
int lengthOfLine = line.size();
......@@ -221,7 +222,6 @@ const FileSearchResultList FileSearchRegExp::operator()(const QString &filePath,
if (pos >= lengthOfLine)
break;
}
++lineNr;
if (future->isPaused())
future->waitForResume();
if (future->isCanceled())
......
Supports Markdown
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