SyncEngine: Error out if we don't have a sync dir

This commit is contained in:
Markus Goetz 2014-08-28 11:47:40 +02:00
parent 3aa7178382
commit 6e0330ff65

View file

@ -482,6 +482,13 @@ void SyncEngine::startSync()
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();
_syncItemMap.clear();
_needsUpdate = false;