diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-11-15 15:20:26 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-01-29 19:28:31 +0000 |
commit | ff00f3cfcf3b50ad8fea903434b13f4dac33b793 (patch) | |
tree | 7949187ae26c537b84a68ec7b85976caa6049b39 /src | |
parent | 296a3ff2d5b0e5a6a2fbc0a577d98629b869e4cb (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
Diffstat (limited to 'src')
-rw-r--r-- | src/mcd-account-manager-default.c | 5 |
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; |