From 2092cbc59a33db3ca565a68101a1ace42a355a24 Mon Sep 17 00:00:00 2001 From: Martin Klapetek Date: Thu, 18 Jun 2015 15:34:35 +0000 Subject: [PATCH] [dialer] Simplify checking for call in progress The connection will always be existing, unless the network is down at which point the channel is already invalid. No point for checking for it then. --- dialer/plugin/tp-caller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dialer/plugin/tp-caller.cpp b/dialer/plugin/tp-caller.cpp index 873bb2d0..ae3e7782 100644 --- a/dialer/plugin/tp-caller.cpp +++ b/dialer/plugin/tp-caller.cpp @@ -83,7 +83,7 @@ void TpCaller::dial(const QString &number) bool TpCaller::callInProgress() { - return m_callChannel && m_callChannel->isValid() && m_callChannel->connection(); + return m_callChannel && m_callChannel->isValid(); } void TpCaller::hangUp()