summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2010-03-02 10:53:38 +0000
committerBastien Nocera <hadess@hadess.net>2010-03-02 10:53:38 +0000
commit0df28faab5070d4dc8058e0f549520a6c40035c8 (patch)
tree4e471c7fe5ed6cc750ffa367e2f16f661f8e500a /lib
parentfe1004e3a879d8625fb5eb2b321c1aa38e5a9bc3 (diff)
downloadgnome-bluetooth-0df28faab5070d4dc8058e0f549520a6c40035c8.tar.gz
Fix getting device properties in geoclue plugin
https://bugzilla.gnome.org/show_bug.cgi?id=611532
Diffstat (limited to 'lib')
-rw-r--r--lib/plugins/geoclue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plugins/geoclue.c b/lib/plugins/geoclue.c
index 52658feb..4966f647 100644
--- a/lib/plugins/geoclue.c
+++ b/lib/plugins/geoclue.c
@@ -47,7 +47,7 @@ get_name_and_type (const char *address, BluetoothType *ret_type)
found_name = NULL;
*ret_type = 0;
client = bluetooth_client_new ();
- model = bluetooth_client_get_model (client);
+ model = bluetooth_client_get_device_model (client, NULL);
if (model == NULL) {
g_object_unref (client);
return NULL;
@@ -106,7 +106,7 @@ has_config_widget (const char *bdaddr, const char **uuids)
/* Type is ANY, probably a GPS device */
name = get_name_and_type (bdaddr, &type);
- if (type == BLUETOOTH_TYPE_ANY) {
+ if (name != NULL && type == BLUETOOTH_TYPE_ANY) {
g_free (name);
return TRUE;
}