mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-10-01 20:53:13 +08:00
FIX: accessing wild pointer of HMSNotifyItem
jira: [STUDIO-10270] Change-Id: I942876148dac93f3a03df3311048e7e4c38ec277
This commit is contained in:
parent
c13bea9b17
commit
1eb7b02b06
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user