[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.
This commit is contained in:
Martin Klapetek 2015-06-18 15:34:35 +00:00
parent 9795b7a9cb
commit 2092cbc59a

View file

@ -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()