aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/backend-dbus/actions.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/backend-dbus/actions.c b/src/backend-dbus/actions.c
index c19d02a..8bee0df 100644
--- a/src/backend-dbus/actions.c
+++ b/src/backend-dbus/actions.c
@@ -705,13 +705,9 @@ zenity_question (IndicatorSessionActionsDbus * self,
{
confirmed = TRUE;
}
- else if (!g_spawn_check_exit_status (exit_status, &error))
- {
- confirmed = TRUE;
- }
else
{
- confirmed = exit_status == 0;
+ confirmed = g_spawn_check_exit_status (exit_status, &error);
}
log_and_clear_error (&error, G_STRLOC, G_STRFUNC);