aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-call-window.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-04-21 22:06:37 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-04-21 22:06:37 +0800
commit1b5a55772da2b6951276c071d238b456338fbe4c (patch)
tree118b6421756cea0aaf44bde55107b397b4b101a0 /src/empathy-call-window.c
parent8c540c6e30829c00405bd12bfefb5a66d9b5dd59 (diff)
downloadgsoc2013-empathy-1b5a55772da2b6951276c071d238b456338fbe4c.tar
gsoc2013-empathy-1b5a55772da2b6951276c071d238b456338fbe4c.tar.gz
gsoc2013-empathy-1b5a55772da2b6951276c071d238b456338fbe4c.tar.bz2
gsoc2013-empathy-1b5a55772da2b6951276c071d238b456338fbe4c.tar.lz
gsoc2013-empathy-1b5a55772da2b6951276c071d238b456338fbe4c.tar.xz
gsoc2013-empathy-1b5a55772da2b6951276c071d238b456338fbe4c.tar.zst
gsoc2013-empathy-1b5a55772da2b6951276c071d238b456338fbe4c.zip
If window->call is NULL consider the call as CLOSED
svn path=/trunk/; revision=1021
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r--src/empathy-call-window.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 3d8d594e4..5c42bbe7d 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -253,11 +253,13 @@ call_window_delete_event_cb (GtkWidget *widget,
{
GtkWidget *dialog;
gint result;
- guint status;
+ guint status = EMPATHY_TP_CALL_STATUS_CLOSED;
empathy_debug (DEBUG_DOMAIN, "Delete event occurred");
- g_object_get (G_OBJECT (window->call), "status", &status, NULL);
+ if (window->call)
+ g_object_get (window->call, "status", &status, NULL);
+
if (status == EMPATHY_TP_CALL_STATUS_ACCEPTED)
{
dialog = gtk_message_dialog_new (GTK_WINDOW (window->window),