]> git.mxchange.org Git - flightgear.git/commitdiff
don't always open "file opened in new browser window" popup
authorTorsten Dreyer <torsten@t3r.de>
Tue, 22 Dec 2015 10:42:27 +0000 (11:42 +0100)
committerTorsten Dreyer <torsten@t3r.de>
Tue, 22 Dec 2015 10:42:27 +0000 (11:42 +0100)
Setting /sim/gui/show-browser-open-hint to false disables the popup.
Default is true (show the popup)

src/GUI/gui_funcs.cxx

index a839ae6f2052a4d6a4cba7ba2449fd5e9da8b257..ce3c79eb0d9675e2f4bb7c1fa19c23c6b3c0696d 100644 (file)
@@ -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;
 }