diff options
Diffstat (limited to 'notificationconn.cc')
-rw-r--r-- | notificationconn.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/notificationconn.cc b/notificationconn.cc index 592f3e5..7ac17f8 100644 --- a/notificationconn.cc +++ b/notificationconn.cc @@ -25,6 +25,7 @@ NotificationConn::NotificationConn(SAPConnection *conn, QObject *parent) : QObject(parent), _conn(conn), _socket(conn->getSocket(104)) { connect(_conn, SIGNAL(disconnected()), SLOT(deleteLater())); + connect(_conn, SIGNAL(destroyed()), SLOT(deleteLater())); Q_ASSERT(_socket); connect(_socket, SIGNAL(connected()), SLOT(handleConnected())); connect(_socket, SIGNAL(messageReceived()), SLOT(handleMessageReceived())); |