From dcbd590c7c1a61560c9dfa2636a467e7e2332c6d Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Sat, 28 Jan 2012 21:45:02 -0600 Subject: Only signal to dbus if we're connected --- src/app-indicator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/app-indicator.c') 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, -- cgit v1.2.3