telepathy-mission-control: mcd-storage: actually remove deleted accounts

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Tue Jun 10 07:06:56 PDT 2014


Module: telepathy-mission-control
Branch: master
Commit: 7a0e57c1d428ded3c22fdc1bc486d7211ddbab9c
URL:    http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=7a0e57c1d428ded3c22fdc1bc486d7211ddbab9c

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Mon Jun  9 12:38:31 2014 +0200

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



More information about the telepathy-commits mailing list