FileSearch: Fix wrong line number for RegExp search.

Introduced by recent refactoring

Change-Id: Ifb7300549ce1791a90d287d5d8dd66f7d2217755
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
Eike Ziller
2015-04-02 17:02:27 +02:00
committed by Christian Stenger
parent 789f3d6ca2
commit f311eff157

View File

@@ -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())