diff options
author | Dmitry Shachnev <mitya57@ubuntu.com> | 2014-08-31 14:39:30 +0400 |
---|---|---|
committer | Dmitry Shachnev <mitya57@ubuntu.com> | 2014-08-31 14:39:30 +0400 |
commit | 56c6dfa749052c49d1ee484a8413e3d98c200996 (patch) | |
tree | fe971191a893cf75e0a63af85115d117bdd748b3 /src | |
parent | c9570c9483bd3144741c1199321302edafffb614 (diff) | |
download | ayatana-indicator-session-56c6dfa749052c49d1ee484a8413e3d98c200996.tar.gz ayatana-indicator-session-56c6dfa749052c49d1ee484a8413e3d98c200996.tar.bz2 ayatana-indicator-session-56c6dfa749052c49d1ee484a8413e3d98c200996.zip |
Make Cancel button in Zenity backend work again
Diffstat (limited to 'src')
-rw-r--r-- | src/backend-dbus/actions.c | 6 |
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); |