aboutsummaryrefslogtreecommitdiff
path: root/room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'room.cpp')
-rw-r--r--room.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/room.cpp b/room.cpp
index e16835fa..07128844 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;
}