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

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralex-z <blackslayer4@gmail.com>2022-09-08 14:21:30 +0300
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>2022-09-10 11:34:34 +0300
commit2a529eef3c317192765822c606f337a2ae0aca8d (patch)
tree5c04984ce99dddc38ebfdcfcb3640952fd99731c /src/common
parentf0b9ecd7472a8e5a78d0a2ca0eb1c6a82eeaf9aa (diff)
Make sure Folder is deleted from the list and the SyncJournalDB is closed for every folder of the account that has been removed.
Signed-off-by: alex-z <blackslayer4@gmail.com>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/syncjournaldb.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/syncjournaldb.cpp b/src/common/syncjournaldb.cpp
index b5e4f97ca..a2caff63a 100644
--- a/src/common/syncjournaldb.cpp
+++ b/src/common/syncjournaldb.cpp
@@ -2425,7 +2425,9 @@ void SyncJournalDb::commitInternal(const QString &context, bool startTrans)
SyncJournalDb::~SyncJournalDb()
{
- close();
+ if (isOpen()) {
+ close();
+ }
}