mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
[dialer] Cast the Channel to CallChannel and call hangup on it
That seems to actually hang up the call
This commit is contained in:
parent
5096dec3b5
commit
eb176a4099
1 changed files with 2 additions and 1 deletions
|
|
@ -25,6 +25,7 @@
|
|||
#include <TelepathyQt/PendingReady>
|
||||
#include <TelepathyQt/PendingContacts>
|
||||
#include <TelepathyQt/TextChannel>
|
||||
#include <TelepathyQt/CallChannel>
|
||||
#include <TelepathyQt/Types>
|
||||
#include <TelepathyQt/ContactManager>
|
||||
|
||||
|
|
@ -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<Tp::CallChannel*>(m_callChannel.data())->hangup();
|
||||
connect(op, &Tp::PendingOperation::finished, [=]() {
|
||||
if (op->isError()) {
|
||||
qWarning() << "Unable to hang up:" << op->errorMessage();
|
||||
|
|
|
|||
Loading…
Reference in a new issue