[PATCH 2/6] perf TUI: Move "Yes" button to before "No"

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Arnaldo Carvalho de Melo
Date: Thursday, April 8, 2010 - 7:38 am

From: Arnaldo Carvalho de Melo <acme@redhat.com>

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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/perf/util/newt.c b/tools/perf/util/newt.c
index c0e71aa..7a123a9 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;
 }
 
 /*
-- 
1.6.2.5

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/6] Fixes and usability improvements, Arnaldo Carvalho de Melo, (Thu Apr 8, 7:38 am)
[PATCH 1/6] perf TUI: Show filters on the title and add he ..., Arnaldo Carvalho de Melo, (Thu Apr 8, 7:38 am)
[PATCH 2/6] perf TUI: Move "Yes" button to before "No", Arnaldo Carvalho de Melo, (Thu Apr 8, 7:38 am)
[PATCH 3/6] perf tools: Reorganize some structs to save space, Arnaldo Carvalho de Melo, (Thu Apr 8, 7:38 am)
[PATCH 4/6] perf bench: fix spello, Arnaldo Carvalho de Melo, (Thu Apr 8, 7:38 am)
[PATCH 5/6] perf: cleanup some Documentation, Arnaldo Carvalho de Melo, (Thu Apr 8, 7:38 am)
[PATCH 6/6] perf trace: Ignore &quot;overwrite&quot; field if presen ..., Arnaldo Carvalho de Melo, (Thu Apr 8, 7:38 am)
Re: [PATCH 0/6] Fixes and usability improvements, Ingo Molnar, (Thu Apr 8, 7:59 am)
Re: [PATCH 3/6] perf tools: Reorganize some structs to sav ..., Arnaldo Carvalho de Melo, (Thu Apr 8, 8:27 am)