Skip to content

Commit 1cd8fa2

Browse files
committed
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>
1 parent 0a4d8fb commit 1cd8fa2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tools/perf/ui/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ void setup_browser(bool fallback_to_pager)
8989
printf("GTK browser requested but could not find %s\n",
9090
PERF_GTK_DSO);
9191
sleep(1);
92+
use_browser = 1;
9293
/* fall through */
9394
case 1:
94-
use_browser = 1;
9595
if (ui__init() == 0)
9696
break;
9797
/* fall through */

0 commit comments

Comments
 (0)