mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-16 02:31:37 +03:00
SyncEngine: Error out if we don't have a sync dir
This commit is contained in:
parent
3aa7178382
commit
6e0330ff65
1 changed files with 7 additions and 0 deletions
|
@ -482,6 +482,13 @@ void SyncEngine::startSync()
|
||||||
qDebug() << "XXXXXXXXXXXXXXXX FAIL: do not have csync_ctx!";
|
qDebug() << "XXXXXXXXXXXXXXXX FAIL: do not have csync_ctx!";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!QDir(_localPath).exists()) {
|
||||||
|
// No _tr, it should only occur in non-mirall
|
||||||
|
emit csyncError("Unable to find local sync directory.");
|
||||||
|
finalize();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_syncedItems.clear();
|
_syncedItems.clear();
|
||||||
_syncItemMap.clear();
|
_syncItemMap.clear();
|
||||||
_needsUpdate = false;
|
_needsUpdate = false;
|
||||||
|
|
Loading…
Reference in a new issue