summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Klapetek <mklapetek@kde.org>2016-02-11 03:15:41 (GMT)
committerAlexandr Akulich <akulichalexander@gmail.com>2016-09-21 14:01:48 (GMT)
commitf36d316e34f292879da4398fb67e3a04deb0c61c (patch)
treec45bc20e54744a8318abbc3cd8eae06a5b98e69b
parent98111fa320a00eded781ad979091beebc10e7cac (diff)
[declarative] Make sure the Private is constructed with 2nd ctor too
Reviewed-by: Alexandr Akulich <akulichalexander@gmail.com>
-rw-r--r--KTp/Declarative/conversation.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/KTp/Declarative/conversation.cpp b/KTp/Declarative/conversation.cpp
index a7c284c..e3b0cf5 100644
--- a/KTp/Declarative/conversation.cpp
+++ b/KTp/Declarative/conversation.cpp
@@ -75,7 +75,9 @@ Conversation::Conversation(const Tp::TextChannelPtr &channel,
connect(d->pausedStateTimer, SIGNAL(timeout()), this, SLOT(onChatPausedTimerExpired()));
}
-Conversation::Conversation(QObject *parent) : QObject(parent)
+Conversation::Conversation(QObject *parent)
+ : QObject(parent),
+ d(new ConversationPrivate)
{
qCCritical(KTP_DECLARATIVE) << "Conversation should not be created directly. Use ConversationWatcher instead.";
}