mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-19 04:37:51 -06:00
Fix situation where the setting visibility model could cause a crash.
Yay for crash logging
This commit is contained in:
parent
4dc248a631
commit
90726ecbff
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ class SettingVisibilityPresetsModel(QObject):
|
|||
item_to_set = self._active_preset_item
|
||||
if matching_preset_item is None:
|
||||
# The new visibility setup is "custom" should be custom
|
||||
if self._active_preset_item.presetId == "custom":
|
||||
if self._active_preset_item is None or self._active_preset_item.presetId == "custom":
|
||||
# We are already in custom, just save the settings
|
||||
self._preferences.setValue("cura/custom_visible_settings", visibility_string)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue