Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KIO Extras
Commits
bf486c01
Commit
bf486c01
authored
Aug 28, 2020
by
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 anyway.
parent
184bc28a
Changes
1
Hide whitespace changes
Inline
Side-by-side
thumbnail/thumbnail.cpp
View file @
bf486c01
...
...
@@ -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
())
{
break
;
}
// Seed the random number generator so that it always returns the same result
// for the same directory and sequence-item
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment