Fix warning messages about null image path

pull/378/head
Loren Burkholder 4 years ago
parent b46cd339a1
commit 6f6d962ab9
  1. 2
      resources/qml/ImageButton.qml

@ -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…
Cancel
Save