diff options
author | supermerill <merill@free.fr> | 2021-12-07 21:26:36 +0300 |
---|---|---|
committer | supermerill <merill@free.fr> | 2021-12-07 17:06:17 +0300 |
commit | 5d622f631927b6e1d821d14e120ff68b20b76d6a (patch) | |
tree | 46e05609fda93f5e01b59cf4127e45369aff8ee8 /src | |
parent | daae6832a1fe02dc38a461201cba2754feb615d2 (diff) |
fix Calibration hyperlinks: open the os browser
supermerill/SuperSlicer#2005
Diffstat (limited to 'src')
-rw-r--r-- | src/slic3r/GUI/CalibrationAbstractDialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/slic3r/GUI/CalibrationAbstractDialog.cpp b/src/slic3r/GUI/CalibrationAbstractDialog.cpp index e2dde9bd5..6fa3c1a6b 100644 --- a/src/slic3r/GUI/CalibrationAbstractDialog.cpp +++ b/src/slic3r/GUI/CalibrationAbstractDialog.cpp @@ -65,6 +65,10 @@ void CalibrationAbstractDialog::create(boost::filesystem::path html_path, std::s html_viewer = new wxHtmlWindow(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO); html_viewer->LoadPage(GUI::from_u8(full_file_path.string())); + // when using hyperlink, open the browser. + html_viewer->Bind(wxEVT_HTML_LINK_CLICKED, [this](wxHtmlLinkEvent& evt) { + wxLaunchDefaultBrowser(evt.GetLinkInfo().GetHref()); + }); main_sizer->Add(html_viewer, 1, wxEXPAND | wxALL, 5); wxDisplay display(wxDisplay::GetFromWindow(main_frame)); |