aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Rohrbach <fxrh@gmx.de>2016-04-09 18:16:48 +0200
committerFelix Rohrbach <fxrh@gmx.de>2016-04-09 18:16:48 +0200
commit32bd6ce054a77d760d98eb3f13fa58704980924b (patch)
tree154e4a2dab33c79277afddf73f2a34e8cbbe947b
parent123f528d5bb7ce72da34c703232f2aa0e556244f (diff)
parent8ddbecbfeac5d35d254a642d24beeb344c33babd (diff)
downloadlibquotient-32bd6ce054a77d760d98eb3f13fa58704980924b.tar.gz
libquotient-32bd6ce054a77d760d98eb3f13fa58704980924b.zip
Merge pull request #1 from davidar/master
Make Connection parent of Room.
-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;
}