[PATCH] Fix phonebook size issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

diff --git a/plugins/phonebook-tracker.c b/plugins/phonebook-tracker.c
index b7acead..071f6d3 100644
--- a/plugins/phonebook-tracker.c
+++ b/plugins/phonebook-tracker.c
@@ -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:\") || "		\
-- 
1.6.3.3

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux