diff options
Diffstat (limited to 'src/gpm-statistics.c')
-rw-r--r-- | src/gpm-statistics.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpm-statistics.c b/src/gpm-statistics.c index 0f6ad66..0b7b9fc 100644 --- a/src/gpm-statistics.c +++ b/src/gpm-statistics.c @@ -920,6 +920,9 @@ gpm_stats_add_device (UpDevice *device, GPtrArray *devices) if ((vendor != NULL && strlen(vendor) != 0) && (model != NULL && strlen(model) != 0)) { label = g_strdup_printf ("%s %s", vendor, model); } + else if((vendor == NULL || strlen(vendor) == 0) && (model != NULL && strlen(model) != 0)) { + label = g_strdup_printf ("%s", model); + } else { label = g_strdup_printf ("%s", gpm_device_kind_to_localised_string (kind, 1)); } |