aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@ubuntu.com>2014-09-19 13:48:34 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-09-19 13:48:34 +0000
commitaee40ea7ac1da7d6520e30da245f4d0433fb76bb (patch)
treefe971191a893cf75e0a63af85115d117bdd748b3
parentc9570c9483bd3144741c1199321302edafffb614 (diff)
parent56c6dfa749052c49d1ee484a8413e3d98c200996 (diff)
downloadayatana-indicator-session-aee40ea7ac1da7d6520e30da245f4d0433fb76bb.tar.gz
ayatana-indicator-session-aee40ea7ac1da7d6520e30da245f4d0433fb76bb.tar.bz2
ayatana-indicator-session-aee40ea7ac1da7d6520e30da245f4d0433fb76bb.zip
Make Cancel button in Zenity backend work again Fixes: 1363630
Approved by: Charles Kerr
-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);