From d1e98f6c59e5ef991e556a01df02fe4182834c3b Mon Sep 17 00:00:00 2001 From: me_desk Date: Sun, 17 Aug 2014 21:22:07 +0000 Subject: 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 --- pica-client/msguirouter.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'pica-client/msguirouter.cpp') 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(); } -- cgit v1.2.1