Verified Commit 2b993aa7 authored by Fushan Wen's avatar Fushan Wen
Browse files

wallpapers/image: fix potential dead loop in ImageFinder

By checking the path is already in the list, dead loops caused by symlink to itself
can be avoided.
parent 28f362df
......@@ -69,7 +69,9 @@ void ImageFinder::run()
}
// add this to the directories we should be looking at
m_paths.append(realwp.filePath());
if (!m_paths.contains(realwp.filePath())) {
m_paths.append(realwp.filePath());
}
}
}
}
......
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