Fix warning messages about null image path
This commit is contained in:
parent
b46cd339a1
commit
6f6d962ab9
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user