- Added explanation to avoid a future commit breaking this...

svn path=/trunk/KDE/kdebase/apps/; revision=1099017
This commit is contained in:
Darío Andrés Rodríguez 2010-03-04 22:44:45 +00:00
parent 0552cd6482
commit 42cd6d871f

View file

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