[ekiga] Call Window: Fixed impossibility to hangup active call after a missed call.



commit 1d5b08b270b4f67d24c461099c8f543f4e17b14d
Author: Damien Sandras <dsandras beip be>
Date:   Sun Jan 20 17:17:10 2013 +0100

    Call Window: Fixed impossibility to hangup active call after a missed call.
    
    The call window was reset to its initial values with the hangup button
    being grayed out.

 lib/engine/gui/gtk-frontend/call-window.cpp |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/call-window.cpp b/lib/engine/gui/gtk-frontend/call-window.cpp
index 4c7a01b..b850844 100644
--- a/lib/engine/gui/gtk-frontend/call-window.cpp
+++ b/lib/engine/gui/gtk-frontend/call-window.cpp
@@ -1195,11 +1195,15 @@ on_cleared_call_cb (G_GNUC_UNUSED boost::shared_ptr<Ekiga::CallManager> manager,
 }
 
 static void on_missed_call_cb (boost::shared_ptr<Ekiga::CallManager>  /*manager*/,
-                               boost::shared_ptr<Ekiga::Call> /*call*/,
+                               boost::shared_ptr<Ekiga::Call> call,
                                gpointer self)
 {
   EkigaCallWindow *cw = EKIGA_CALL_WINDOW (self);
 
+  if (cw->priv->current_call && cw->priv->current_call->get_id () != call->get_id ()) {
+    return; // Trying to clear another call than the current active one
+  }
+
   gtk_window_set_title (GTK_WINDOW (cw), _("Call Window"));
   ekiga_call_window_update_calling_state (cw, Standby);
   ekiga_call_window_set_status (cw, _("Standby"));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]