diff --git a/dialer/plugin/tp-caller.cpp b/dialer/plugin/tp-caller.cpp index ff6251e2..b59940f8 100644 --- a/dialer/plugin/tp-caller.cpp +++ b/dialer/plugin/tp-caller.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include @@ -88,7 +89,7 @@ void TpCaller::hangUp() qDebug() << "About to hangup" << m_callChannel << m_callChannel->isValid() << m_callChannel->connection(); if (m_callChannel && m_callChannel->isValid() && m_callChannel->connection()) { qDebug() << "Hanging up"; - Tp::PendingOperation *op = m_callChannel->requestClose(); + Tp::PendingOperation *op = qobject_cast(m_callChannel.data())->hangup(); connect(op, &Tp::PendingOperation::finished, [=]() { if (op->isError()) { qWarning() << "Unable to hang up:" << op->errorMessage();