ConfigWizard : Fixed a crash, when some of material pages doesn't exist

This commit is contained in:
YuSanka 2024-01-05 14:15:49 +01:00 committed by Lukas Matena
parent e922fdceb4
commit 141ae5a916

View File

@ -2785,7 +2785,9 @@ bool ConfigWizard::priv::on_bnt_finish()
* than last changes wouldn't be updated for filaments/materials. * than last changes wouldn't be updated for filaments/materials.
* SO, do that before check_and_install_missing_materials() * SO, do that before check_and_install_missing_materials()
*/ */
if (page_filaments)
page_filaments->check_and_update_presets(); page_filaments->check_and_update_presets();
if (page_sla_materials)
page_sla_materials->check_and_update_presets(); page_sla_materials->check_and_update_presets();
// there's no need to check that filament is selected if we have only custom printer // there's no need to check that filament is selected if we have only custom printer