Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH v2] Fix phonebook size issue
@ 2011-01-03 13:34 Rafal Michalski
  2011-01-03 13:50 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Rafal Michalski @ 2011-01-03 13:34 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: 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(-)

diff --git a/plugins/phonebook-tracker.c b/plugins/phonebook-tracker.c
index a5cd8a7..d211660 100644
--- a/plugins/phonebook-tracker.c
+++ b/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					\
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] Fix phonebook size issue
  2011-01-03 13:34 [PATCH v2] Fix phonebook size issue Rafal Michalski
@ 2011-01-03 13:50 ` Johan Hedberg
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2011-01-03 13:50 UTC (permalink / raw)
  To: Rafal Michalski; +Cc: linux-bluetooth

Hi Rafal,

On Mon, Jan 03, 2011, Rafal Michalski wrote:
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-03 13:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-03 13:34 [PATCH v2] Fix phonebook size issue Rafal Michalski
2011-01-03 13:50 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox