Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable-3.12] Bugfix/update encryption state when server change #6843

Merged
merged 3 commits into from
Jun 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
do not allow to select e2ee folders if the server support is missing
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
mgallien committed Jun 26, 2024
commit eea64f0d0754e761d5ff180120f0ee773dcc16e1
3 changes: 3 additions & 0 deletions src/gui/folderstatusmodel.cpp
Original file line number Diff line number Diff line change
@@ -135,6 +135,9 @@ Qt::ItemFlags FolderStatusModel::flags(const QModelIndex &index) const
return Qt::ItemIsEnabled;
case SubFolder:
if (supportsSelectiveSync) {
if (info && info->_isEncrypted && !_accountState->account()->capabilities().clientSideEncryptionAvailable()) {
return Qt::ItemIsUserCheckable | Qt::ItemIsSelectable;
}
return Qt::ItemIsEnabled | Qt::ItemIsUserCheckable | Qt::ItemIsSelectable;
} else {
return Qt::ItemIsEnabled | Qt::ItemIsSelectable;