aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-01-28 21:45:02 -0600
committerTed Gould <ted@gould.cx>2012-01-28 21:45:02 -0600
commitdcbd590c7c1a61560c9dfa2636a467e7e2332c6d (patch)
treeecd25344ac68ef20438daa41ca302551f7ae7025 /src
parent2d03f1d2b167e4b0ca56d4034e039cbfb9ffbd70 (diff)
downloadlibayatana-appindicator-dcbd590c7c1a61560c9dfa2636a467e7e2332c6d.tar.gz
libayatana-appindicator-dcbd590c7c1a61560c9dfa2636a467e7e2332c6d.tar.bz2
libayatana-appindicator-dcbd590c7c1a61560c9dfa2636a467e7e2332c6d.zip
Only signal to dbus if we're connected
Diffstat (limited to 'src')
-rw-r--r--src/app-indicator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c
index 0d27cb2..54a2b6a 100644
--- a/src/app-indicator.c
+++ b/src/app-indicator.c
@@ -877,7 +877,7 @@ app_indicator_set_property (GObject * object, guint prop_id, const GValue * valu
priv->title = NULL;
}
- if (g_strcmp0(oldtitle, priv->title) != 0) {
+ if (g_strcmp0(oldtitle, priv->title) != 0 && self->priv->connection != NULL) {
GError * error = NULL;
g_dbus_connection_emit_signal(self->priv->connection,