mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-30 23:51:57 +08:00
Fix crash when sending to print host (manifested on macOS under ASAN) #13750
This commit is contained in:
parent
8c7014cc3c
commit
4cf30d6c81
@ -467,9 +467,9 @@ void PrintHostQueueDialog::on_progress(Event &evt)
|
||||
wxVariant nm, hst;
|
||||
job_list->GetValue(nm, evt.job_id, COL_FILENAME);
|
||||
job_list->GetValue(hst, evt.job_id, COL_HOST);
|
||||
const wchar_t * nm_str = nm.GetString();
|
||||
const wchar_t * hst_str = hst.GetString();
|
||||
wxGetApp().notification_manager()->set_upload_job_notification_percentage(evt.job_id + 1, into_u8(nm_str), into_u8(hst_str), evt.progress / 100.f);
|
||||
const std::string& nm_str = into_u8(nm.GetString());
|
||||
const std::string& hst_str = into_u8(hst.GetString());
|
||||
wxGetApp().notification_manager()->set_upload_job_notification_percentage(evt.job_id + 1, nm_str, hst_str, evt.progress / 100.f);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user