From 95fabbaf6d9522cf05804a143cbbb67a87171535 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Tue, 11 Oct 2016 15:20:13 +0200 Subject: [PATCH] Don't allow creating profiles based on empty_profile ...because empty_profile has no quality_type CURA-2271 --- resources/qml/Actions.qml | 2 +- resources/qml/Preferences/ProfilesPage.qml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/qml/Actions.qml b/resources/qml/Actions.qml index 3ee8630183..300a9056d4 100644 --- a/resources/qml/Actions.qml +++ b/resources/qml/Actions.qml @@ -137,7 +137,7 @@ Item Action { id: addProfileAction; - enabled: Cura.MachineManager.isActiveStackValid && Cura.MachineManager.hasUserSettings + enabled: Cura.MachineManager.isActiveStackValid && Cura.MachineManager.hasUserSettings && Cura.MachineManager.activeQualityId != "empty_quality" text: catalog.i18nc("@action:inmenu menubar:profile","&Create profile from current settings..."); } diff --git a/resources/qml/Preferences/ProfilesPage.qml b/resources/qml/Preferences/ProfilesPage.qml index 42c055486a..238b5f022b 100644 --- a/resources/qml/Preferences/ProfilesPage.qml +++ b/resources/qml/Preferences/ProfilesPage.qml @@ -62,7 +62,7 @@ UM.ManagementPage Button { text: catalog.i18nc("@label", "Create") - enabled: base.canCreateProfile() + enabled: base.canCreateProfile() && Cura.MachineManager.activeQualityId != "empty_quality" visible: base.canCreateProfile() iconName: "list-add"; @@ -78,7 +78,7 @@ UM.ManagementPage Button { text: catalog.i18nc("@label", "Duplicate") - enabled: ! base.canCreateProfile() + enabled: ! base.canCreateProfile() && Cura.MachineManager.activeQualityId != "empty_quality" visible: ! base.canCreateProfile() iconName: "list-add";