diff options
| author | Tomasz Sterna <tomek@xiaoka.com> | 2014-08-01 13:10:30 +0200 |
|---|---|---|
| committer | Tomasz Sterna <tomek@xiaoka.com> | 2014-08-02 00:55:18 +0200 |
| commit | 2b3d7822d93ca4a2a9be84a93f57a9e3b595ee87 (patch) | |
| tree | 146a1896b2d019492806784b5c1278a799baae2d | |
| parent | 9f6288b5f755e951c91a163e48e7ed12cc3e20f7 (diff) | |
Stop incoming phone call, when other party disconnects. closes #11
| -rw-r--r-- | daemon/manager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/daemon/manager.cpp b/daemon/manager.cpp index 57ef57e..1cce6d3 100644 --- a/daemon/manager.cpp +++ b/daemon/manager.cpp @@ -128,6 +128,7 @@ void Manager::onActiveVoiceCallChanged() VoiceCallHandler* handler = voice->activeVoiceCall(); if (handler) { connect(handler, SIGNAL(statusChanged()), SLOT(onActiveVoiceCallStatusChanged())); + connect(handler, SIGNAL(destroyed()), SLOT(onActiveVoiceCallStatusChanged())); return; } } @@ -136,7 +137,8 @@ void Manager::onActiveVoiceCallStatusChanged() { VoiceCallHandler* handler = voice->activeVoiceCall(); if (!handler) { - logger()->debug() << "ActiveVoiceCallStatusChanged but no activeVoiceCall??"; + logger()->debug() << "ActiveVoiceCall destroyed"; + watch->endPhoneCall(); return; } |
