mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
Sort languages combobox by language code
* Avoid creating redundant file lists * Sort languages combobox by language code PR #20365.
This commit is contained in:
@@ -443,10 +443,10 @@ void TorrentFilesWatcher::Worker::processFolder(const Path &path, const Path &wa
|
||||
|
||||
if (options.recursive)
|
||||
{
|
||||
QDirIterator dirIter {path.data(), (QDir::Dirs | QDir::NoDot | QDir::NoDotDot)};
|
||||
while (dirIter.hasNext())
|
||||
QDirIterator iter {path.data(), (QDir::Dirs | QDir::NoDotAndDotDot)};
|
||||
while (iter.hasNext())
|
||||
{
|
||||
const Path folderPath {dirIter.next()};
|
||||
const Path folderPath {iter.next()};
|
||||
// Skip processing of subdirectory that is explicitly set as watched folder
|
||||
if (!m_watchedFolders.contains(folderPath))
|
||||
processFolder(folderPath, watchedFolderPath, options);
|
||||
|
||||
Reference in New Issue
Block a user