diff options
author | Jaime van Kessel <nallath@gmail.com> | 2022-02-21 17:40:08 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2022-02-21 17:40:08 +0300 |
commit | 163252765101323552a78f2e3b38d979b5f270bf (patch) | |
tree | 9d3a4d189dcfc8876d5c92d3e1d570a16714ce8a /cura/Machines/Models | |
parent | ba6c0438a1aed332a6c48d28f815840a005d670e (diff) |
Prevent crash when switching extruder in profiles page
Diffstat (limited to 'cura/Machines/Models')
-rw-r--r-- | cura/Machines/Models/QualitySettingsModel.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cura/Machines/Models/QualitySettingsModel.py b/cura/Machines/Models/QualitySettingsModel.py index bdae032f36..2051f1748d 100644 --- a/cura/Machines/Models/QualitySettingsModel.py +++ b/cura/Machines/Models/QualitySettingsModel.py @@ -178,7 +178,10 @@ class QualitySettingsModel(ListModel): label = f"<i>{label}</i>" # Make setting name italic if it's derived from the quality-changes profile. if isinstance(profile_value, SettingFunction): - profile_value_display = self._i18n_catalog.i18nc("@info:status", "Calculated") + if self._i18n_catalog: + profile_value_display = self._i18n_catalog.i18nc("@info:status", "Calculated") + else: + profile_value_display = "Calculated" else: profile_value_display = "" if profile_value is None else str(profile_value) |