Fix reference error in POS

CURA-6683
This commit is contained in:
Nino van Hooff 2019-09-13 13:16:16 +02:00
parent 606faf54c2
commit 667e5f8e18

View File

@ -181,7 +181,7 @@ Item
onClicked: onClicked:
{ {
settingPickDialog.visible = true; settingPickDialog.visible = true;
if (meshTypeSelection.model.get(meshTypeSelection.currentIndex).type == "support_mesh") if (current_mesh_type == "support_mesh")
{ {
settingPickDialog.additional_excluded_settings = base.all_categories_except_support; settingPickDialog.additional_excluded_settings = base.all_categories_except_support;
} }
@ -409,7 +409,7 @@ Item
if(visible) if(visible)
{ {
// Set skip setting, it will prevent from resetting selected mesh_type // Set skip setting, it will prevent from resetting selected mesh_type
contents.model.visibilityHandler.addSkipResetSetting(meshTypeSelection.model.get(meshTypeSelection.currentIndex).type) contents.model.visibilityHandler.addSkipResetSetting(current_mesh_type)
listview.model.forceUpdate() listview.model.forceUpdate()
updateFilter() updateFilter()