Changed display of the own name in FriendsDialog from "Name (me) Location" to "Name (Location)".

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5044 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2012-03-22 09:01:17 +00:00
parent bbdb3b9614
commit 67cf9c5f3c

View File

@ -38,6 +38,7 @@
#include "channels/CreateChannel.h"
#include "common/Emoticons.h"
#include "common/vmessagebox.h"
#include "common/PeerDefs.h"
#include "chat/ChatDialog.h"
#include "connect/ConfCertDialog.h"
#include "connect/ConnectFriendWizard.h"
@ -203,9 +204,8 @@ FriendsDialog::FriendsDialog(QWidget *parent)
// add self nick and Avatar to Friends.
RsPeerDetails pd ;
if (rsPeers->getPeerDetails(rsPeers->getOwnId(),pd)) {
QString titleStr("<span style=\"font-size:16pt; font-weight:500;"
"color:#32cd32;\">%1</span>");
ui.nicklabel->setText(titleStr.arg(QString::fromUtf8(pd.name.c_str()) + " (" + tr("me") + ") " + QString::fromUtf8(pd.location.c_str())));
QString titleStr("<span style=\"font-size:16pt; font-weight:500;color:#32cd32;\">%1</span>");
ui.nicklabel->setText(titleStr.arg(PeerDefs::nameWithLocation(pd)));
}
/* Hide platform specific features */