From 7a69b9beff8581ac3dbd64aefcb959aeed18ac65 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Tue, 22 Dec 2015 11:42:27 +0100 Subject: [PATCH] don't always open "file opened in new browser window" popup Setting /sim/gui/show-browser-open-hint to false disables the popup. Default is true (show the popup) --- src/GUI/gui_funcs.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/GUI/gui_funcs.cxx b/src/GUI/gui_funcs.cxx index a839ae6f2..ce3c79eb0 100644 --- a/src/GUI/gui_funcs.cxx +++ b/src/GUI/gui_funcs.cxx @@ -221,7 +221,9 @@ bool openBrowser(const std::string& aAddress) ok = (system( command.c_str() ) == 0); #endif - mkDialog("The file is shown in your web browser window."); + if( fgGetBool("/sim/gui/show-browser-open-hint", true) ) + mkDialog("The file is shown in your web browser window."); + return ok; } -- 2.39.5