From 65111ee6bdb3c75b9e20b1d1551b8fdebda39ff0 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Sun, 5 Aug 2012 16:07:03 -0300 Subject: [PATCH] Do not automatically SwapCalls on local hangup of active call. Fixes #11 (Waiting call + Hangup and Answer turns into held call). Leaves code and TODO so we can get back to this. --- dialer/callscreen.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dialer/callscreen.c b/dialer/callscreen.c index 6ba6878..2c8f5eb 100644 --- a/dialer/callscreen.c +++ b/dialer/callscreen.c @@ -270,6 +270,12 @@ static void _call_disconnected_done(Callscreen *ctx, const char *reason) gui_call_exit(); } else { if (strcmp(reason, "local") == 0) { + /* Bug #11 says this shouldn't be done. + * + * TODO: talk to ofono devs and see what to do, + * maybe introuce ReleaseAndSwap() + */ +#if 0 /* If there is a held call and active is * hangup we're left with held but no active, * which is strange. @@ -285,6 +291,7 @@ static void _call_disconnected_done(Callscreen *ctx, const char *reason) /* TODO: sound to notify user */ ofono_swap_calls(NULL, NULL); } +#endif } } ctx->disconnected.call = NULL; -- 2.7.4