Return empty string so we get no errors about assigning undefined to string

This commit is contained in:
Arjen Hiemstra 2015-07-30 16:53:16 +02:00
parent 68cde3f780
commit b5e8f01cfa

View file

@ -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