From 67cf9c5f3cdbf7a56823db9140691bc66e7e89fe Mon Sep 17 00:00:00 2001 From: thunder2 Date: Thu, 22 Mar 2012 09:01:17 +0000 Subject: [PATCH] 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 --- retroshare-gui/src/gui/FriendsDialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/retroshare-gui/src/gui/FriendsDialog.cpp b/retroshare-gui/src/gui/FriendsDialog.cpp index cbf2112bb..45b5edb2c 100644 --- a/retroshare-gui/src/gui/FriendsDialog.cpp +++ b/retroshare-gui/src/gui/FriendsDialog.cpp @@ -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("%1"); - ui.nicklabel->setText(titleStr.arg(QString::fromUtf8(pd.name.c_str()) + " (" + tr("me") + ") " + QString::fromUtf8(pd.location.c_str()))); + QString titleStr("%1"); + ui.nicklabel->setText(titleStr.arg(PeerDefs::nameWithLocation(pd))); } /* Hide platform specific features */