From ba35ed5938cd6b29ddb858cfb3f93839c38a3e94 Mon Sep 17 00:00:00 2001 From: "zorro.zhang" Date: Wed, 4 Sep 2024 15:55:36 +0800 Subject: [PATCH] FIX: Open New WebTab in Local Browser JIRA: none Change-Id: I62baf32ec4ebb3130fe1721dbecbae8ed2533423 --- src/slic3r/GUI/WebViewDialog.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/slic3r/GUI/WebViewDialog.cpp b/src/slic3r/GUI/WebViewDialog.cpp index 0f5d837bb..c14ef447b 100644 --- a/src/slic3r/GUI/WebViewDialog.cpp +++ b/src/slic3r/GUI/WebViewDialog.cpp @@ -1021,10 +1021,11 @@ void WebViewPanel::OnNewWindow(wxWebViewEvent& evt) if (wxGetApp().get_mode() == comDevelop) wxLogMessage("%s", "New window; url='" + evt.GetURL() + "'" + flag); - //If we handle new window events then just load them in this window as we - //are a single window browser - if (m_tools_handle_new_window->IsChecked()) - m_browser->LoadURL(evt.GetURL()); + //If we handle new window events then just load them in local browser + if (m_tools_handle_new_window->IsChecked()) + { + wxLaunchDefaultBrowser(evt.GetURL()); + } UpdateState(); }