diff options
Diffstat (limited to 'tools/perf/ui/tui/setup.c')
-rw-r--r-- | tools/perf/ui/tui/setup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/ui/tui/setup.c b/tools/perf/ui/tui/setup.c index 3c38f25b1695..b77e1d771363 100644 --- a/tools/perf/ui/tui/setup.c +++ b/tools/perf/ui/tui/setup.c | |||
@@ -17,6 +17,7 @@ | |||
17 | static volatile int ui__need_resize; | 17 | static volatile int ui__need_resize; |
18 | 18 | ||
19 | extern struct perf_error_ops perf_tui_eops; | 19 | extern struct perf_error_ops perf_tui_eops; |
20 | extern bool tui_helpline__set; | ||
20 | 21 | ||
21 | extern void hist_browser__init_hpp(void); | 22 | extern void hist_browser__init_hpp(void); |
22 | 23 | ||
@@ -159,7 +160,7 @@ out: | |||
159 | 160 | ||
160 | void ui__exit(bool wait_for_ok) | 161 | void ui__exit(bool wait_for_ok) |
161 | { | 162 | { |
162 | if (wait_for_ok) | 163 | if (wait_for_ok && tui_helpline__set) |
163 | ui__question_window("Fatal Error", | 164 | ui__question_window("Fatal Error", |
164 | ui_helpline__last_msg, | 165 | ui_helpline__last_msg, |
165 | "Press any key...", 0); | 166 | "Press any key...", 0); |