FIX: fix the empty plate exception issue when slicing all

Change-Id: I55746b575025fdcc732fa2386cbce45a34bce210
This commit is contained in:
lane.wei 2022-11-28 21:25:45 +08:00 committed by Lane.Wei
parent 45dd07cfe4
commit 03226c9e43
2 changed files with 6 additions and 2 deletions

View file

@ -5635,7 +5635,8 @@ void Plater::priv::on_process_completed(SlicingProcessCompletedEvent &evt)
}
//BBS: set the current plater's slice result to valid
this->background_process.get_current_plate()->update_slice_result_valid_state(evt.success());
if (!this->background_process.empty())
this->background_process.get_current_plate()->update_slice_result_valid_state(evt.success());
//BBS: update the action button according to the current plate's status
bool ready_to_slice = !this->partplate_list.get_curr_plate()->is_slice_result_valid();