diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-08-27 20:25:30 +0300 |
---|---|---|
committer | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-08-27 20:25:30 +0300 |
commit | 79bcf1caf7a67e49d2389e1ad0df34f74554eef8 (patch) | |
tree | a736c33c37d0f3fa2a39893a185a4d87857ece60 /src/gui/folderman.cpp | |
parent | d9980c097a014d7edf8c7f97427bcf3007772e0a (diff) |
Revert "Small cleanup"
This reverts commit a8a05ec18ae5487eeb94f3e4923e80722171c88b.
Diffstat (limited to 'src/gui/folderman.cpp')
-rw-r--r-- | src/gui/folderman.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp index a94cc1b09..652085f9d 100644 --- a/src/gui/folderman.cpp +++ b/src/gui/folderman.cpp @@ -1331,16 +1331,14 @@ static QString checkPathValidityRecursive(const QString &path) Utility::NtfsPermissionLookupRAII ntfs_perm; #endif const QFileInfo selFile(path); - - if (!selFile.absoluteDir().entryList({ QStringLiteral(".sync_*.db"), QStringLiteral("._sync_*.db") }, QDir::Hidden | QDir::Files).isEmpty()) { + if (!QDir(path).entryList({ QStringLiteral(".sync_*.db"), QStringLiteral("._sync_*.db") }, QDir::Hidden | QDir::Files).isEmpty()) { return FolderMan::tr("The folder %1 is used in a folder sync connection!").arg(QDir::toNativeSeparators(selFile.filePath())); } if (!selFile.exists()) { const QString parentPath = selFile.path(); - if (parentPath != path) { + if (parentPath != path) return checkPathValidityRecursive(parentPath); - } return FolderMan::tr("The selected path does not exist!"); } |