diff --git a/src/gui/filedetails/sharemodel.cpp b/src/gui/filedetails/sharemodel.cpp index 9679cf5bf1..bbd7bf24b2 100644 --- a/src/gui/filedetails/sharemodel.cpp +++ b/src/gui/filedetails/sharemodel.cpp @@ -130,11 +130,8 @@ QVariant ShareModel::data(const QModelIndex &index, const int role) const return startOfExpireDayUTC.toMSecsSinceEpoch(); } } - } else if (share->getShareType() == Share::TypeInternalLink) { - switch(role) { - case LinkRole: - return _privateLinkUrl; - } + } else if (share->getShareType() == Share::TypeInternalLink && role == LinkRole) { + return _privateLinkUrl; } switch(role) {