summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/corelib/io/qdiriterator.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/io/qdiriterator.cpp b/src/corelib/io/qdiriterator.cpp
index 2e8d9c4..09001c6 100644
--- a/src/corelib/io/qdiriterator.cpp
+++ b/src/corelib/io/qdiriterator.cpp
@@ -205,6 +205,7 @@ void QDirIteratorPrivate::advance()
}
currentFileInfo = nextFileInfo;
+ nextFileInfo = QFileInfo();
}
/*!
@@ -440,8 +441,6 @@ QDirIterator::~QDirIterator()
*/
QString QDirIterator::next()
{
- if (!hasNext())
- return QString();
d->advance();
return filePath();
}