From 42cd6d871f72117820f139b8c8909889aa77136a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Andr=C3=A9s=20Rodr=C3=ADguez?= Date: Thu, 4 Mar 2010 22:44:45 +0000 Subject: [PATCH] - Added explanation to avoid a future commit breaking this... svn path=/trunk/KDE/kdebase/apps/; revision=1099017 --- kfind/kquery.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kfind/kquery.cpp b/kfind/kquery.cpp index a2f68199dd..8d67fab202 100644 --- a/kfind/kquery.cpp +++ b/kfind/kquery.cpp @@ -418,6 +418,8 @@ void KQuery::processQuery( const KFileItem &file) QString str = stream->readLine(); matchingLineNumber++; + //If the stream ended (readLine().isNull() is true) the file was read completely + //Do *not* use isEmpty() because that will exit if there is an empty line in the file if (str.isNull()) break; if(isZippedOfficeDocument) str.remove(xmlTags);