mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
FIX: accessing wild pointer of HMSNotifyItem
jira: [STUDIO-10270] Change-Id: I942876148dac93f3a03df3311048e7e4c38ec277 (cherry picked from commit 1eb7b02b0679c03e8fa535ddf0671af1f9b971d7)
This commit is contained in:
@@ -119,10 +119,11 @@ HMSNotifyItem::HMSNotifyItem(const std::string& dev_id, wxWindow *parent, HMSIte
|
||||
}
|
||||
});
|
||||
m_hms_content->Bind(wxEVT_LEFT_UP, [this](wxMouseEvent& e) {
|
||||
if (!m_url.empty()) wxLaunchDefaultBrowser(m_url);
|
||||
wxCommandEvent evt(EVT_ALREADY_READ_HMS);
|
||||
evt.SetString(long_error_code);
|
||||
wxPostEvent(wxGetApp().mainframe->m_monitor, evt);
|
||||
|
||||
if (!m_url.empty()) wxLaunchDefaultBrowser(m_url);
|
||||
});
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user