From c7d7d47765ac83f795ee952720520dff233ec4d9 Mon Sep 17 00:00:00 2001 From: Rafal Michalski Date: Mon, 3 Jan 2011 14:34:04 +0100 Subject: [PATCH] obexd: Fix phonebook size issue Previously, when only empty default owner vCard was available, phonebook default size equal to 1 was received and it was always counted when phonebook size requested. This patch makes that it is equal to 0 as it should be and it is not counted anymore when phonebook size requested. --- obexd/plugins/phonebook-tracker.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/obexd/plugins/phonebook-tracker.c b/obexd/plugins/phonebook-tracker.c index a5cd8a744..d21166075 100644 --- a/obexd/plugins/phonebook-tracker.c +++ b/obexd/plugins/phonebook-tracker.c @@ -870,8 +870,7 @@ "SELECT COUNT(?c) " \ "WHERE {" \ "?c a nco:PersonContact ." \ - "FILTER (regex(str(?c), \"contact:\") || " \ - "regex(str(?c), \"nco#default-contact-me\"))" \ + "FILTER (regex(str(?c), \"contact:\"))" \ "}" #define MISSED_CALLS_COUNT_QUERY \ -- 2.47.3