From 509d5401676076e35c694faafbd1a1c97ea461bd Mon Sep 17 00:00:00 2001 From: Max-Wilhelm Bruker Date: Mon, 3 Jan 2011 22:39:53 +0100 Subject: [PATCH] personal message fix --- cockatrice/src/tab_room.cpp | 1 + cockatrice/src/tab_room.h | 1 + 2 files changed, 2 insertions(+) diff --git a/cockatrice/src/tab_room.cpp b/cockatrice/src/tab_room.cpp index be61033f..18c9b123 100644 --- a/cockatrice/src/tab_room.cpp +++ b/cockatrice/src/tab_room.cpp @@ -164,6 +164,7 @@ TabRoom::TabRoom(AbstractClient *_client, const QString &_ownName, ServerInfo_Ro { gameSelector = new GameSelector(client, roomId); userList = new UserList(false); + connect(userList, SIGNAL(openMessageDialog(const QString &, bool)), this, SIGNAL(openMessageDialog(const QString &, bool))); chatView = new ChatView(ownName); sayLabel = new QLabel; diff --git a/cockatrice/src/tab_room.h b/cockatrice/src/tab_room.h index 541b2c57..fd4f8f5c 100644 --- a/cockatrice/src/tab_room.h +++ b/cockatrice/src/tab_room.h @@ -78,6 +78,7 @@ private: QString sanitizeHtml(QString dirty) const; signals: void roomClosing(TabRoom *tab); + void openMessageDialog(const QString &userName, bool focus); private slots: void sendMessage(); void actLeaveRoom();