summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gdu/gdu-error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gdu/gdu-error.c b/src/gdu/gdu-error.c
index 860f9a1..dbd8022 100644
--- a/src/gdu/gdu-error.c
+++ b/src/gdu/gdu-error.c
@@ -73,7 +73,7 @@ _gdu_error_fixup (GError *error)
matched = TRUE;
if (strcmp (name, "org.freedesktop.DeviceKit.Disks.Error.Failed") == 0)
error->code = GDU_ERROR_FAILED;
- if (strcmp (name, "org.freedesktop.DeviceKit.Disks.Error.Inhibited") == 0)
+ else if (strcmp (name, "org.freedesktop.DeviceKit.Disks.Error.Inhibited") == 0)
error->code = GDU_ERROR_INHIBITED;
else if (strcmp (name, "org.freedesktop.DeviceKit.Disks.Error.Busy") == 0)
error->code = GDU_ERROR_BUSY;