mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
Properly create "clean path" for watched folder (#15179)
This commit is contained in:
committed by
GitHub
parent
abd6eb2ff3
commit
699b91ab8d
@@ -268,11 +268,10 @@ QString TorrentFilesWatcher::makeCleanPath(const QString &path)
|
||||
if (path.isEmpty())
|
||||
throw InvalidArgument(tr("Watched folder path cannot be empty."));
|
||||
|
||||
const QDir dir {path};
|
||||
if (dir.isRelative())
|
||||
if (QDir::isRelativePath(path))
|
||||
throw InvalidArgument(tr("Watched folder path cannot be relative."));
|
||||
|
||||
return dir.canonicalPath();
|
||||
return QDir::cleanPath(path);
|
||||
}
|
||||
|
||||
void TorrentFilesWatcher::load()
|
||||
|
||||
Reference in New Issue
Block a user