perf TUI: Move "Yes" button to before "No"
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 5 Apr 2010 15:04:23 +0000 (12:04 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 8 Apr 2010 14:34:25 +0000 (11:34 -0300)
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>
tools/perf/util/newt.c

index c0e71aacfc1b488436e7cfc31f9129817ada76fd..7a123a94e3fc093e2f956204a1967570880f3061 100644 (file)
@@ -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;
 }
 
 /*