From 8ddbecbfeac5d35d254a642d24beeb344c33babd Mon Sep 17 00:00:00 2001 From: David A Roberts Date: Sat, 9 Apr 2016 14:06:34 +1000 Subject: Make Connection parent of Room. --- room.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/room.cpp b/room.cpp index 178ada27..f5837d77 100644 --- a/room.cpp +++ b/room.cpp @@ -65,7 +65,7 @@ class Room::Private: public QObject }; Room::Room(Connection* connection, QString id) - : d(new Private(this)) + : QObject(connection), d(new Private(this)) { d->id = id; d->connection = connection; @@ -78,6 +78,7 @@ Room::Room(Connection* connection, QString id) Room::~Room() { + qDebug() << "deconstructing room " << this; delete d; } -- cgit v1.2.3