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
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-09-13 16:01:34 +0300
committerHannah von Reth <vonreth@kde.org>2021-09-15 18:20:01 +0300
commit65b67b3ff594b5b9baa6f52108510afff1c99f7c (patch)
tree8f1d6b1938c35ee219c599ffbdbafbf265d8c284 /src/libsync
parentc0b4c4817cfd858d9a59bb67e4a65a532c1fdfe3 (diff)
Fix crash on missing sync root
Fixes: #9016
Diffstat (limited to 'src/libsync')
-rw-r--r--src/libsync/syncengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsync/syncengine.cpp b/src/libsync/syncengine.cpp
index ec6b2f564..e3bb75f65 100644
--- a/src/libsync/syncengine.cpp
+++ b/src/libsync/syncengine.cpp
@@ -370,7 +370,7 @@ void SyncEngine::startSync()
_progressInfo->reset();
- if (!QDir(_localPath).exists()) {
+ if (!QFileInfo::exists(_localPath)) {
_anotherSyncNeeded = DelayedFollowUp;
// No _tr, it should only occur in non-mirall
Q_EMIT syncError(QStringLiteral("Unable to find local sync folder."));