summaryrefslogtreecommitdiff
path: root/src/gpm-upower.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpm-upower.c')
-rw-r--r--src/gpm-upower.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpm-upower.c b/src/gpm-upower.c
index 168e879..5b25e63 100644
--- a/src/gpm-upower.c
+++ b/src/gpm-upower.c
@@ -219,7 +219,7 @@ gpm_upower_get_device_summary (UpDevice *device)
/* we care if we are on AC */
if (kind == UP_DEVICE_KIND_PHONE) {
- if (state == UP_DEVICE_STATE_CHARGING || !state == UP_DEVICE_STATE_DISCHARGING) {
+ if (state == UP_DEVICE_STATE_CHARGING || !(state == UP_DEVICE_STATE_DISCHARGING)) {
/* TRANSLATORS: a phone is charging */
return g_strdup_printf (_("%s charging (%.1f%%)"), kind_desc, percentage);
}