forked from Minki/linux
perf ui: No need to set ui_browser to 1 twice
We need to do it only when fallbacking from GTK to the TUI. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-dda0acxqef1k72n9z4myjbjt@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
0a4d8fb229
commit
1cd8fa288e
@ -89,9 +89,9 @@ void setup_browser(bool fallback_to_pager)
|
||||
printf("GTK browser requested but could not find %s\n",
|
||||
PERF_GTK_DSO);
|
||||
sleep(1);
|
||||
use_browser = 1;
|
||||
/* fall through */
|
||||
case 1:
|
||||
use_browser = 1;
|
||||
if (ui__init() == 0)
|
||||
break;
|
||||
/* fall through */
|
||||
|
Loading…
Reference in New Issue
Block a user