show displaynames of users in share dialog instead of userid
authorArthur Schiwon <blizzz@owncloud.com>
Fri, 27 Nov 2015 13:46:39 +0000 (14:46 +0100)
committerArthur Schiwon <blizzz@owncloud.com>
Fri, 27 Nov 2015 14:19:39 +0000 (15:19 +0100)
src/gui/sharee.cpp

index 04fddff9dc52a81567a9f779475de54468c4c37c..08aae3ccce63797a53eadaded91a70959a96963b 100644 (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