diff options
| -rw-r--r-- | pica-client/chatwindow.cpp | 2 | ||||
| -rw-r--r-- | pica-client/chatwindow.h | 1 | ||||
| -rw-r--r-- | pica-client/msguirouter.cpp | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/pica-client/chatwindow.cpp b/pica-client/chatwindow.cpp index 9d52ee9..9cb1c8c 100644 --- a/pica-client/chatwindow.cpp +++ b/pica-client/chatwindow.cpp @@ -328,6 +328,8 @@ void ChatWindow::addct_yes() ct.Add(peer_id_, Contacts::regular); addct_removequestion(); + + emit contacts_update(); } void ChatWindow::addct_no() diff --git a/pica-client/chatwindow.h b/pica-client/chatwindow.h index 0f4002e..73a053e 100644 --- a/pica-client/chatwindow.h +++ b/pica-client/chatwindow.h @@ -34,6 +34,7 @@ public: signals: void msg_input(QString msg, ChatWindow *sender_window); void chatwindow_close(ChatWindow *sender_window); + void contacts_update(); public slots: void msg_from_peer(QString msg); diff --git a/pica-client/msguirouter.cpp b/pica-client/msguirouter.cpp index 93b6c66..c51cb24 100644 --- a/pica-client/msguirouter.cpp +++ b/pica-client/msguirouter.cpp @@ -63,6 +63,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())); cw->show(); } |
