summaryrefslogtreecommitdiff
path: root/src/contacts-store.vala
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2011-06-16 15:58:40 +0200
committerAlexander Larsson <alexl@redhat.com>2011-06-17 16:05:38 +0200
commit518777f7ce503be9b0cc25511260707e8f5b8b25 (patch)
treed0f87eb0a35bd2655a49d5e24b4a7f2bd7fc1a1b /src/contacts-store.vala
parent318bfda16bd8c3a8ce3730bc23547420a9a49190 (diff)
downloadgnome-contacts-518777f7ce503be9b0cc25511260707e8f5b8b25.tar.gz
Don't show the user as a contact
Diffstat (limited to 'src/contacts-store.vala')
-rw-r--r--src/contacts-store.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/contacts-store.vala b/src/contacts-store.vala
index 367f35b..4a933bd 100644
--- a/src/contacts-store.vala
+++ b/src/contacts-store.vala
@@ -48,6 +48,10 @@ public class Contacts.Store {
public TreeModel model { get { return list_store; } }
private bool apply_filter (Contact contact) {
+ // Don't show the user itself
+ if (contact.individual.is_user)
+ return false;
+
// Filter out pure key-file persona individuals as these are
// not very interesting
var personas = contact.individual.personas;