From 7a0e57c1d428ded3c22fdc1bc486d7211ddbab9c Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 9 Jun 2014 12:38:31 +0200 Subject: [PATCH] mcd-storage: actually remove deleted accounts https://bugs.freedesktop.org/show_bug.cgi?id=79832 --- src/mcd-storage.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mcd-storage.c b/src/mcd-storage.c index b2d57dc..fea76c2 100644 --- a/src/mcd-storage.c +++ b/src/mcd-storage.c @@ -577,8 +577,12 @@ deleted_cb (McpAccountStorage *plugin, if (check_is_responsible (self, plugin, account_name, "deleting", &error)) - g_signal_emit (self, signals[SIGNAL_DELETED], 0, plugin, - account_name); + { + g_hash_table_remove (self->accounts, account_name); + + g_signal_emit (self, signals[SIGNAL_DELETED], 0, plugin, + account_name); + } } static void -- 1.9.3