summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-01-16 11:52:58 -0500
committerLoren Burkholder <computersemiexpert@outlook.com>2021-01-16 11:52:58 -0500
commit6f6d962ab976cc40cefa1062e3c5a224f1bf77ab (patch)
tree530fd0fdf1a646e2d554d171d889a71e50914605 /resources
parentFix tooltips (diff)
downloadnheko-6f6d962ab976cc40cefa1062e3c5a224f1bf77ab.tar.xz
Fix warning messages about null image path
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/ImageButton.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/qml/ImageButton.qml b/resources/qml/ImageButton.qml
index 58e0a2a9..f645162c 100644
--- a/resources/qml/ImageButton.qml
+++ b/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 {