Folder: Treat file unlock similar to external change #6822
authorChristian Kamm <mail@ckamm.de>
Thu, 1 Nov 2018 11:25:12 +0000 (12:25 +0100)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:17 +0000 (10:58 +0100)
For consistent handling of incoming notifications.

src/gui/folderman.cpp

index a0626725893c80c5252fc4ffaf8d2387434758cc..5a3a5fbf63bad0a17120f8e0a558ca0b9e31fa3d 100644 (file)
@@ -882,7 +882,8 @@ void FolderMan::slotServerVersionChanged(Account *account)
 void FolderMan::slotWatchedFileUnlocked(const QString &path)
 {
     if (Folder *f = folderForPath(path)) {
-        f->scheduleThisFolderSoon();
+        // Treat this equivalently to the file being reported by the file watcher
+        f->slotWatchedPathChanged(path);
     }
 }