aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-01-19 21:42:12 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-01-19 23:46:53 +0800
commit48a4f5ec33f06f0e26017fcf7fc4c235a8e6d7df (patch)
tree2cb6ad1e14d2af5be6579b4d80093dfe1550055d
parentf7cee33cf8bd3598f9d9869797d7d0737573b6c6 (diff)
downloadgsoc2013-empathy-48a4f5ec33f06f0e26017fcf7fc4c235a8e6d7df.tar
gsoc2013-empathy-48a4f5ec33f06f0e26017fcf7fc4c235a8e6d7df.tar.gz
gsoc2013-empathy-48a4f5ec33f06f0e26017fcf7fc4c235a8e6d7df.tar.bz2
gsoc2013-empathy-48a4f5ec33f06f0e26017fcf7fc4c235a8e6d7df.tar.lz
gsoc2013-empathy-48a4f5ec33f06f0e26017fcf7fc4c235a8e6d7df.tar.xz
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.c4
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 */