diff --git a/src/gui/filedetails/sharemodel.cpp b/src/gui/filedetails/sharemodel.cpp index d44c2837ef8c..ff849b84fb34 100644 --- a/src/gui/filedetails/sharemodel.cpp +++ b/src/gui/filedetails/sharemodel.cpp @@ -26,7 +26,6 @@ #include "sharepermissions.h" #include "theme.h" #include "updatee2eefolderusersmetadatajob.h" -#include "wordlist.h" namespace { @@ -264,6 +263,12 @@ void ShareModel::updateData() resharingAllowed = false; } + if (fileRecord.isVirtualFile() && _synchronizationFolder->vfs().mode() == Vfs::WithSuffix) { + if (const auto suffix = _synchronizationFolder->vfs().fileSuffix(); !suffix.isEmpty() && _sharePath.endsWith(suffix)) { + _sharePath.chop(suffix.length()); + } + } + _maxSharingPermissions = resharingAllowed ? SharePermissions(_accountState->account()->capabilities().shareDefaultPermissions()) : SharePermissions({}); Q_EMIT sharePermissionsChanged();