From 1b85b232fdfb9e8bf7425f2ee6d6d9a5358e6d36 Mon Sep 17 00:00:00 2001 From: Floris Bos Date: Sat, 21 Oct 2023 10:34:40 +0200 Subject: [PATCH] Deal with os_list.json not specifying icon for "No filtering" Solves warning: "qrc:/main.qml:758:21: Unable to assign [undefined] to QUrl" --- src/main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.qml b/src/main.qml index aab879a..73117fa 100644 --- a/src/main.qml +++ b/src/main.qml @@ -755,7 +755,7 @@ ApplicationWindow { spacing: 12 Image { - source: icon == "icons/ic_build_48px.svg" ? "icons/cat_misc_utility_images.png": icon + source: typeof icon === "undefined" ? "" : icon Layout.preferredHeight: 64 Layout.preferredWidth: 64 sourceSize.width: 64