Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2022-07-05 16:37:45 +0300
committerHannah von Reth <vonreth@kde.org>2022-07-05 17:28:53 +0300
commit584588818d0f38b0a542d39077f4c1feb9dfb269 (patch)
tree644d2aa9d2a468a4bd5a965cc86161b849178025 /src/gui
parent5581317492b5dc771191c3205bfc5ce36a430090 (diff)
Normalise path
Fixes: #9834
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/folderman.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp
index 97537bacd..a41cca30c 100644
--- a/src/gui/folderman.cpp
+++ b/src/gui/folderman.cpp
@@ -1327,17 +1327,17 @@ QString FolderMan::findGoodPathForNewSyncFolder(const QString &basePath) const
if (FolderMan::instance()->folderForPath(parentFolder)) {
// Any path with that parent is going to be unacceptable,
// so just keep it as-is.
- return basePath;
+ return canonicalPath(basePath);
}
// Count attempts and give up eventually
for (int attempt = 2; attempt < 100; ++attempt) {
if (!QFileInfo::exists(folder)
&& FolderMan::instance()->checkPathValidityForNewFolder(folder).isEmpty()) {
- return folder;
+ return canonicalPath(folder);
}
folder = basePath + QString::number(attempt);
}
- return basePath;
+ return canonicalPath(basePath);
}
bool FolderMan::ignoreHiddenFiles() const