From 00cc8f1fba5e6dce027f61a5fcfbf69028d6c500 Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Fri, 17 Jan 2014 07:48:19 +0000 Subject: [PATCH] Fixed issue #83. --- src/gui/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/main.cpp b/src/gui/main.cpp index c8af15cc..21942baf 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -833,7 +833,7 @@ void Launcher::OnSortPlugins(wxCommandEvent& event) { BOOST_LOG_TRIVIAL(debug) << "Displaying report..."; if (_settings["View Report Externally"] && _settings["View Report Externally"].as()) { - wxLaunchDefaultApplication(_game.ReportPath().string()); + wxLaunchDefaultBrowser(_game.ReportPath().string()); } else { //Create viewer window. Viewer *viewer = new Viewer(this, translate("BOSS: Report Viewer"), _game.ReportPath().string()); @@ -947,7 +947,7 @@ void Launcher::OnEditMetadata(wxCommandEvent& event) { void Launcher::OnViewLastReport(wxCommandEvent& event) { if (_settings["View Report Externally"] && _settings["View Report Externally"].as()) { BOOST_LOG_TRIVIAL(debug) << "Opening report in external application..."; - wxLaunchDefaultApplication(_game.ReportPath().string()); + wxLaunchDefaultBrowser(_game.ReportPath().string()); } else { //Create viewer window. BOOST_LOG_TRIVIAL(debug) << "Opening viewer window..."; @@ -1052,7 +1052,7 @@ void Launcher::OnHelp(wxCommandEvent& event) { //Look for file. BOOST_LOG_TRIVIAL(debug) << "Opening readme."; if (fs::exists(g_path_readme)) { - wxLaunchDefaultApplication(g_path_readme.string()); + wxLaunchDefaultBrowser(g_path_readme.string()); } else { //No readme exists, show a pop-up message saying so. BOOST_LOG_TRIVIAL(error) << "File \"" << g_path_readme.string() << "\" could not be found."; wxMessageBox( @@ -1067,7 +1067,7 @@ void Launcher::OnOpenDebugLog(wxCommandEvent& event) { //Look for file. BOOST_LOG_TRIVIAL(debug) << "Opening readme."; if (fs::exists(g_path_log)) { - wxLaunchDefaultApplication(g_path_log.string()); + wxLaunchDefaultBrowser(g_path_log.string()); } else { //No log exists, show a pop-up message saying so. BOOST_LOG_TRIVIAL(error) << "File \"" << g_path_log.string() << "\" could not be found."; wxMessageBox(