diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-04-05 12:04:23 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-04-08 11:34:25 -0300 |
commit | c0ed55d2e4f600335193612725c0d7c8211a7a4a (patch) | |
tree | 4883c91a7a69477a8e7614930484ab9a9a77913f /tools | |
parent | 6e7ab4c649eb7ed403d970b8eda32ca3745e8024 (diff) | |
download | linux-c0ed55d2e4f600335193612725c0d7c8211a7a4a.tar.gz linux-c0ed55d2e4f600335193612725c0d7c8211a7a4a.tar.bz2 linux-c0ed55d2e4f600335193612725c0d7c8211a7a4a.zip |
perf TUI: Move "Yes" button to before "No"
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/newt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/newt.c b/tools/perf/util/newt.c index c0e71aacfc1b..7a123a94e3fc 100644 --- a/tools/perf/util/newt.c +++ b/tools/perf/util/newt.c @@ -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; } /* |