[Pkg-telepathy-commits] [telepathy-mission-control-6] 212/280: McdAccountManagerDefault: don't pass "absent" accounts up to MC

Simon McVittie smcv at debian.org
Thu Mar 27 20:07:25 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian
in repository telepathy-mission-control-6.

commit ff00f3cfcf3b50ad8fea903434b13f4dac33b793
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Fri Nov 15 15:20:26 2013 +0000

    McdAccountManagerDefault: don't pass "absent" accounts up to MC
    
    They're not really accounts, just gaps where an account could go.
    
    Bug: https://bugs.freedesktop.org/show_bug.cgi?id=27727
---
 src/mcd-account-manager-default.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/mcd-account-manager-default.c b/src/mcd-account-manager-default.c
index e42d167..9becfd3 100644
--- a/src/mcd-account-manager-default.c
+++ b/src/mcd-account-manager-default.c
@@ -981,7 +981,10 @@ _list (const McpAccountStorage *self,
 
   while (g_hash_table_iter_next (&hash_iter, &k, &v))
     {
-      rval = g_list_prepend (rval, g_strdup (k));
+      McdDefaultStoredAccount *sa = v;
+
+      if (!sa->absent)
+        rval = g_list_prepend (rval, g_strdup (k));
     }
 
   return rval;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/telepathy-mission-control-6.git



More information about the Pkg-telepathy-commits mailing list