diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-01-19 21:42:12 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-01-19 23:46:53 +0800 |
commit | 48a4f5ec33f06f0e26017fcf7fc4c235a8e6d7df (patch) | |
tree | 2cb6ad1e14d2af5be6579b4d80093dfe1550055d | |
parent | f7cee33cf8bd3598f9d9869797d7d0737573b6c6 (diff) | |
download | gsoc2013-empathy-48a4f5ec33f06f0e26017fcf7fc4c235a8e6d7df.tar.gz gsoc2013-empathy-48a4f5ec33f06f0e26017fcf7fc4c235a8e6d7df.tar.zst gsoc2013-empathy-48a4f5ec33f06f0e26017fcf7fc4c235a8e6d7df.zip |
account-widget: check that the apply button actually exist before modifying it
It's not created in the 'simple' version of the widget. (#607455)
-rw-r--r-- | libempathy-gtk/empathy-account-widget.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |