Merge pull request #4213 from owncloud/fix-share-dialog-displaynames-2.1

show displaynames of users in share dialog instead of userid
This commit is contained in:
Roeland Douma 2015-11-27 15:37:54 +01:00
commit 4cb9d6763b

View File

@ -137,7 +137,7 @@ QSharedPointer<Sharee> ShareeModel::parseSharee(const QVariantMap &data)
const QString shareWith = data.value("value").toMap().value("shareWith").toString();
Sharee::Type type = (Sharee::Type)data.value("value").toMap().value("shareType").toInt();
return QSharedPointer<Sharee>(new Sharee(shareWith, shareWith, type));
return QSharedPointer<Sharee>(new Sharee(shareWith, displayName, type));
}
/* Set the new sharee