Skip to contentSkip to conversation

Fix phonebook size issue

PATCH In review Rafal Michalski 2 participants 2 messages Jan 3, 2011 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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.

---
 plugins/phonebook-tracker.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
plugins/phonebook-tracker.c +1 -2
index a5cd8a7..d211660 100644
@@ -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					\
Signature · 1 line
1.6.3.3
#1 lore raw

Hi Rafal,

Quoted 7 lines · Rafal Michalski

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.

---
 plugins/phonebook-tracker.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Pushed upstream. Thanks.

Johan