From b5e8f01cfab2d0e64d786b53ea0108bfed6fc3cb Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Thu, 30 Jul 2015 16:53:16 +0200 Subject: [PATCH] Return empty string so we get no errors about assigning undefined to string --- resources/qml/SaveButton.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/qml/SaveButton.qml b/resources/qml/SaveButton.qml index 710fbb5293..83d268fb2b 100644 --- a/resources/qml/SaveButton.qml +++ b/resources/qml/SaveButton.qml @@ -46,7 +46,7 @@ Rectangle { visible: base.progress >= 0 && base.progress < 0.99 ? false : true color: UM.Theme.colors.save_button_estimated_text; font: UM.Theme.fonts.small; - text: + text: { if(base.progress < 0) { //: Save button label return qsTr("Please load a 3D model"); @@ -60,6 +60,8 @@ Rectangle { //: Save button label return qsTr("Estimated Print-time"); } + return ""; + } } Label { id: printDurationLabel