Skip to contentSkip to conversation

Fix phonebook size issue

PATCH Superseded Rafal Michalski 1 participant 1 message Dec 31, 2010 Bluetooth drivers

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
plugins/phonebook-tracker.c +1 -1
index b7acead..071f6d3 100644
@@ -867,7 +867,7 @@
 	"} "
 
 #define CONTACTS_COUNT_QUERY						\
-	"SELECT COUNT(?c) "						\
+	"SELECT COUNT(?c) - 1 "						\
 	"WHERE {"							\
 		"?c a nco:PersonContact ."				\
 		"FILTER (regex(str(?c), \"contact:\") || "		\
Signature · 1 line
1.6.3.3