From 1b5a55772da2b6951276c071d238b456338fbe4c Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 21 Apr 2008 14:06:37 +0000 Subject: If window->call is NULL consider the call as CLOSED svn path=/trunk/; revision=1021 --- src/empathy-call-window.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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), -- cgit v1.2.3