Skip to content

Commit

Permalink
Clean up data section for internal link in model
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
  • Loading branch information
claucambra committed Dec 13, 2022
1 parent 1371d5d commit 6cc5f82
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/gui/filedetails/sharemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6cc5f82

Please sign in to comment.