FIX: check the pointer
jira: [STUDIO-11084] Change-Id: Iac0f51467f818714e18e2a1c15a8691e0e5ab351
This commit is contained in:
parent
2fc15b4c11
commit
2f979b27c9
|
@ -2870,7 +2870,7 @@ void SelectMachineDialog::on_set_finish_mapping(wxCommandEvent &evt)
|
||||||
void SelectMachineDialog::on_print_job_cancel(wxCommandEvent &evt)
|
void SelectMachineDialog::on_print_job_cancel(wxCommandEvent &evt)
|
||||||
{
|
{
|
||||||
BOOST_LOG_TRIVIAL(info) << "print_job: canceled";
|
BOOST_LOG_TRIVIAL(info) << "print_job: canceled";
|
||||||
if (m_print_job->get_print_stage() == PrintingStageFinished)
|
if (m_print_job && m_print_job->get_print_stage() == PrintingStageFinished)
|
||||||
{
|
{
|
||||||
MessageDialog dlg(this, _L("As the print job has been successfully sent, the cancellation will not bring the print job to a halt. If you need to terminate this job, please stop it in 'Device' page."), _L("Info"), wxYES);
|
MessageDialog dlg(this, _L("As the print job has been successfully sent, the cancellation will not bring the print job to a halt. If you need to terminate this job, please stop it in 'Device' page."), _L("Info"), wxYES);
|
||||||
dlg.ShowModal();
|
dlg.ShowModal();
|
||||||
|
|
Loading…
Reference in New Issue