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:
authorTomaz Canabrava <tcanabrava@kde.org>2017-11-23 18:55:12 +0300
committerTomaz Canabrava <tcanabrava@kde.org>2017-11-23 18:55:12 +0300
commit45d932365335c393d89d4bc95bdea52f0f007d81 (patch)
tree00b3d719ed8058ebd90522c8989dc7637369e50d /src/gui/folderstatusmodel.cpp
parent57e0d7abcb1b5258d979907f72e17255f8b11aab (diff)
[CSE] Update encryption status when folder is updated
Diffstat (limited to 'src/gui/folderstatusmodel.cpp')
-rw-r--r--src/gui/folderstatusmodel.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp
index d3a06f4f5..28616d2f6 100644
--- a/src/gui/folderstatusmodel.cpp
+++ b/src/gui/folderstatusmodel.cpp
@@ -46,6 +46,7 @@ FolderStatusModel::FolderStatusModel(QObject *parent)
, _accountState(0)
, _dirty(false)
{
+
}
FolderStatusModel::~FolderStatusModel()
@@ -553,6 +554,13 @@ void FolderStatusModel::fetchMore(const QModelIndex &parent)
}
path += info->_path;
}
+
+ //TODO: This is the correct place, but this doesn't seems to be the right
+ // Way to call fetchFolderEncryptedStatus.
+ if (_accountState->account()->capabilities().clientSideEncryptionAvaliable()) {
+ _accountState->account()->e2e()->fetchFolderEncryptedStatus();
+ }
+
LsColJob *job = new LsColJob(_accountState->account(), path, this);
job->setProperties(QList<QByteArray>() << "resourcetype"
<< "http://owncloud.org/ns:size"