Merge lp://staging/~mitya57/indicator-session/lp1363630 into lp://staging/indicator-session/14.10

Proposed by Dmitry Shachnev
Status: Merged
Approved by: Charles Kerr
Approved revision: 455
Merged at revision: 455
Proposed branch: lp://staging/~mitya57/indicator-session/lp1363630
Merge into: lp://staging/indicator-session/14.10
Diff against target: 18 lines (+1/-5)
1 file modified
src/backend-dbus/actions.c (+1/-5)
To merge this branch: bzr merge lp://staging/~mitya57/indicator-session/lp1363630
Reviewer Review Type Date Requested Status
Charles Kerr (community) Approve
Ted Gould Pending
Indicator Applet Developers Pending
Review via email: mp+232813@code.staging.launchpad.net

Commit message

Make Cancel button in Zenity backend work again

Description of the change

Currently the code in zenity_question() looks like:

if (!g_spawn_check_exit_status (exit_status, &error))
      confirmed = TRUE;
else
      confirmed = exit_status == 0;

However !g_spawn_check_exit_status() call is mostly equivalent to "exit_status != 0". Thus, confirmed will be *always* set to TRUE, even if the user cancelled the dialog.

This MP makes things work again.

To post a comment you must log in.
Revision history for this message
Charles Kerr (charlesk) wrote :

LGTM. Thanks for the fix Dmitry!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches