summaryrefslogtreecommitdiffstats
path: root/pica-client/msguirouter.cpp
diff options
context:
space:
mode:
authorme_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac>2014-08-17 21:22:07 +0000
committerAnton <anton@picapica>2014-08-18 01:22:37 +0400
commitd1e98f6c59e5ef991e556a01df02fe4182834c3b (patch)
tree42d8e5c92f06b080fcae1ad00a16f6a728c061aa /pica-client/msguirouter.cpp
parentc34605186f4d2b37ea2f8bb7c1db67dfaea3ff42 (diff)
downloadpica-pica-d1e98f6c59e5ef991e556a01df02fe4182834c3b.tar.gz
pica-pica-d1e98f6c59e5ef991e556a01df02fe4182834c3b.zip
update peer name in chatwindow after the first communication in order to show nickname instead of ID
git-svn-id: svn://localhost/project_picapica/trunk@332 fb96df88-216d-11de-830c-f3023f12d8ac
Diffstat (limited to 'pica-client/msguirouter.cpp')
-rw-r--r--pica-client/msguirouter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/pica-client/msguirouter.cpp b/pica-client/msguirouter.cpp
index 6abe8c0..4cb7771 100644
--- a/pica-client/msguirouter.cpp
+++ b/pica-client/msguirouter.cpp
@@ -64,6 +64,7 @@ void MsgUIRouter::create_chatwindow(QByteArray peer_id)
connect(cw, SIGNAL(msg_input(QString,ChatWindow*)), this, SLOT(msg_to_peer(QString,ChatWindow*)));
connect(cw, SIGNAL(chatwindow_close(ChatWindow*)), this, SLOT(chatwindow_closed(ChatWindow*)));
connect(cw, SIGNAL(contacts_update()), skynet, SIGNAL(ContactsUpdated()));
+ connect(skynet, SIGNAL(ContactsUpdated()), cw, SLOT(set_peer_name()));
cw->show();
}