ソースを参照

Clean up data section for internal link in model

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Claudio Cambra 3 年 前
コミット
b4ea35e95c
1 ファイル変更2 行追加5 行削除
  1. 2 5
      src/gui/filedetails/sharemodel.cpp

+ 2 - 5
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) {