From 48a4f5ec33f06f0e26017fcf7fc4c235a8e6d7df Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 19 Jan 2010 13:42:12 +0000 Subject: account-widget: check that the apply button actually exist before modifying it It's not created in the 'simple' version of the widget. (#607455) --- libempathy-gtk/empathy-account-widget.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c index 52efbce01..112673d4d 100644 --- a/libempathy-gtk/empathy-account-widget.c +++ b/libempathy-gtk/empathy-account-widget.c @@ -1311,6 +1311,10 @@ presence_changed_cb (TpAccountManager *manager, if (priv->destroyed) return; + if (priv->apply_button == NULL) + /* This button doesn't exist in 'simple' mode */ + return; + if (state > TP_CONNECTION_PRESENCE_TYPE_OFFLINE) { /* We are online, display a Login button */ -- cgit v1.2.3