Skip to content

Commit

Permalink
perf TUI: Move "Yes" button to before "No"
Browse files Browse the repository at this point in the history
Esc + Enter should be enough warning to avoid accidentaly exiting from
the browser.

Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
  • Loading branch information
Arnaldo Carvalho de Melo committed Apr 8, 2010
1 parent 6e7ab4c commit c0ed55d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/util/newt.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static bool dialog_yesno(const char *msg)
{
/* newtWinChoice should really be accepting const char pointers... */
char yes[] = "Yes", no[] = "No";
return newtWinChoice(NULL, no, yes, (char *)msg) == 2;
return newtWinChoice(NULL, yes, no, (char *)msg) == 1;
}

/*
Expand Down

0 comments on commit c0ed55d

Please sign in to comment.