From 6e0330ff65ba56ffe72993a91be869cabcf01742 Mon Sep 17 00:00:00 2001 From: Markus Goetz Date: Thu, 28 Aug 2014 11:47:40 +0200 Subject: [PATCH] SyncEngine: Error out if we don't have a sync dir --- src/mirall/syncengine.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mirall/syncengine.cpp b/src/mirall/syncengine.cpp index 12ee2e589..c907a3359 100644 --- a/src/mirall/syncengine.cpp +++ b/src/mirall/syncengine.cpp @@ -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;