[gnome-contacts] Don't show the user as a contact
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Don't show the user as a contact
- Date: Fri, 17 Jun 2011 14:07:37 +0000 (UTC)
commit 518777f7ce503be9b0cc25511260707e8f5b8b25
Author: Alexander Larsson <alexl redhat com>
Date: Thu Jun 16 15:58:40 2011 +0200
Don't show the user as a contact
src/contacts-store.vala | 4 ++++
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]