diff options
Diffstat (limited to 'src/server/connectionframe/connectionframe.cpp')
| -rw-r--r-- | src/server/connectionframe/connectionframe.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/connectionframe/connectionframe.cpp b/src/server/connectionframe/connectionframe.cpp index 6bfce81..05e24a4 100644 --- a/src/server/connectionframe/connectionframe.cpp +++ b/src/server/connectionframe/connectionframe.cpp @@ -97,7 +97,7 @@ void ConnectionFrame::setSize(int width, int height) void ConnectionFrame::assignClient(Client* client) { assert(_client == NULL); - connect(client, SIGNAL(destroyed(QObject*)), this, SLOT(onClientDisconnected(QObject*))); + connect(client, SIGNAL(disconnected()), this, SLOT(onClientDisconnected())); connect(client, SIGNAL(thumbUpdated(Client*, const QPixmap&)), this, SLOT(onThumbUpdated(Client*, const QPixmap&))); connect(client, SIGNAL(vncServerStateChange(Client*)), this, SLOT(onVncServerStateChange(Client*))); connect(client, SIGNAL(vncClientStateChange(Client*)), this, SLOT(onVncClientStateChange(Client*))); @@ -254,9 +254,8 @@ void ConnectionFrame::updateColor() * Slots */ -void ConnectionFrame::onClientDisconnected(QObject* client) +void ConnectionFrame::onClientDisconnected() { - assert(client == _client); if (_timerId != 0) { killTimer(_timerId); |
