mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-05 23:55:35 -04:00
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:
parent
df741f7c64
commit
1ec716175b
8 changed files with 36 additions and 22 deletions
|
@ -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 "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue