Commit bf486c01 authored by Stefan Brüns's avatar Stefan Brüns
Browse files

Do not check dir.hasNext() twice

If the inner loop is not run, skipped will be 0 and the loop is left
parent 184bc28a
......@@ -524,9 +524,6 @@ QImage ThumbnailProtocol::thumbForDirectory(const QString& directory)
while (true) {
QDirIterator dir(directory, QDir::Files | QDir::Readable);
int skipped = 0;
if (!dir.hasNext()) {
// Seed the random number generator so that it always returns the same result
// for the same directory and sequence-item
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