Fixed shown name in chat list.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4810 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2012-01-18 00:32:15 +00:00
parent df741f7c64
commit 1ec716175b
8 changed files with 36 additions and 22 deletions

View file

@ -51,13 +51,13 @@ ChatDialog::~ChatDialog()
}
}
void ChatDialog::init(const std::string &peerId, const QString &peerName)
void ChatDialog::init(const std::string &peerId, const QString &title)
{
this->peerId = peerId;
ChatWidget *cw = getChatWidget();
if (cw) {
cw->init(peerId, peerName);
cw->init(peerId, title);
connect(cw, SIGNAL(infoChanged(ChatWidget*)), this, SLOT(chatInfoChanged(ChatWidget*)));
connect(cw, SIGNAL(newMessage(ChatWidget*)), this, SLOT(chatNewMessage(ChatWidget*)));
@ -282,7 +282,7 @@ QString ChatDialog::getTitle()
{
ChatWidget *cw = getChatWidget();
if (cw) {
return cw->getPeerName();
return cw->getTitle();
}
return "";