summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-11-15 15:20:26 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-01-29 19:28:31 +0000
commitff00f3cfcf3b50ad8fea903434b13f4dac33b793 (patch)
tree7949187ae26c537b84a68ec7b85976caa6049b39
parent296a3ff2d5b0e5a6a2fbc0a577d98629b869e4cb (diff)
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
-rw-r--r--src/mcd-account-manager-default.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mcd-account-manager-default.c b/src/mcd-account-manager-default.c
index e42d1675..9becfd3b 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;