Implement "Add torrent params" editing widget

This commit is contained in:
Vladimir Golovnev (Glassez)
2023-04-07 09:13:31 +03:00
parent b185153254
commit 0cc29f1851
7 changed files with 735 additions and 3 deletions

View File

@@ -102,8 +102,8 @@ Private::FileSystemPathValidator::testPath(const Path &path) const
// `QFileInfo` will cache the query results and avoid exessive querying to filesystem
const QFileInfo info {path.data()};
if (existingOnly() && !info.exists())
return TestResult::DoesNotExist;
if (!info.exists())
return existingOnly() ? TestResult::DoesNotExist : TestResult::OK;
if (directoriesOnly())
{