aboutsummaryrefslogtreecommitdiff
path: root/libindicate/listener.c
diff options
context:
space:
mode:
Diffstat (limited to 'libindicate/listener.c')
-rw-r--r--libindicate/listener.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libindicate/listener.c b/libindicate/listener.c
index 2c1f3b3..5baa36f 100644
--- a/libindicate/listener.c
+++ b/libindicate/listener.c
@@ -398,7 +398,7 @@ proxy_indicator_added (DBusGProxy * proxy, guint id, const gchar * type, proxy_t
g_hash_table_insert(proxyt->indicators, g_strdup(type), indicators);
}
- if (g_hash_table_lookup(indicators, (gpointer)id)) {
+ if (!g_hash_table_lookup(indicators, (gpointer)id)) {
g_hash_table_insert(indicators, (gpointer)id, (gpointer)TRUE);
g_signal_emit(proxyt->listener, signals[INDICATOR_ADDED], 0, proxyt->name, id, type, TRUE);
}