diff options
-rw-r--r-- | src/up-daemon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/up-daemon.c b/src/up-daemon.c index 333f73b..c2dd14b 100644 --- a/src/up-daemon.c +++ b/src/up-daemon.c @@ -111,7 +111,8 @@ up_daemon_get_number_devices_of_type (UpDaemon *daemon, UpDeviceKind type) g_object_get (device, "type", &type_tmp, NULL); - if (type == type_tmp) + if (type == type_tmp && + up_device_get_object_path (device) != NULL) count++; } g_ptr_array_unref (array); |