Commit e8aeb3a9 authored by Martin Klapetek's avatar Martin Klapetek Committed by Alexander Akulich

[declarative] Directly request closing the channel in requestClose()

parent 0b16cef6
......@@ -233,8 +233,9 @@ void Conversation::requestClose()
{
qCDebug(KTP_DECLARATIVE);
//removing from the model will delete this object closing the channel
Q_EMIT conversationCloseRequested();
if (!d->messages->textChannel().isNull()) {
d->messages->textChannel()->requestClose();
}
}
void Conversation::updateTextChanged(const QString &message)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment