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

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2019-12-16 18:33:41 +0300
committerHannah von Reth <vonreth@kde.org>2019-12-16 21:56:02 +0300
commit583b54c367342ecb2fa92873b3565623df660433 (patch)
treeafc521e996d604ae9c0ac8e0aa90ef10fcfcb081 /src/gui/folder.h
parent8629adaf788a8e2e676dcf514f5db14c419970ab (diff)
Don't ignore file sync notification after an unlock
For a usual file sync event we check for actual changes in the local file, after an unlock the local file might be unchanged so we need to sync it anyhow. Fixes: owncloud/enterprise#3609
Diffstat (limited to 'src/gui/folder.h')
-rw-r--r--src/gui/folder.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/folder.h b/src/gui/folder.h
index a29eddd5f..a5adfe00a 100644
--- a/src/gui/folder.h
+++ b/src/gui/folder.h
@@ -113,6 +113,12 @@ class Folder : public QObject
Q_OBJECT
public:
+ enum class ChangeReason {
+ Other,
+ UnLock
+ };
+ Q_ENUM(ChangeReason)
+
/** Create a new Folder
*/
Folder(const FolderDefinition &definition, AccountState *accountState, std::unique_ptr<Vfs> vfs, QObject *parent = 0L);
@@ -336,7 +342,7 @@ public slots:
* changes. Needs to check whether this change should trigger a new
* sync run to be scheduled.
*/
- void slotWatchedPathChanged(const QString &path);
+ void slotWatchedPathChanged(const QString &path, ChangeReason reason);
/**
* Mark a virtual file as being requested for download, and start a sync.