Fix warning messages about null image path

This commit is contained in:
Loren Burkholder 2021-01-16 11:52:58 -05:00
parent b46cd339a1
commit 6f6d962ab9

View file

@ -19,7 +19,7 @@ AbstractButton {
// Workaround, can't get icon.source working for now...
anchors.fill: parent
source: "image://colorimage/" + image + "?" + ((button.hovered && changeColorOnHover) ? highlightColor : buttonTextColor)
source: image != "" ? ("image://colorimage/" + image + "?" + ((button.hovered && changeColorOnHover) ? highlightColor : buttonTextColor)) : ""
}
MouseArea {