QmlDesigner: Fix "no match" visible when searching materials

... in the content library

Fixes: QDS-14996
Change-Id: Icba7b6b82a946824c593dad68e8198219cd6b1d5
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
Mahmoud Badri
2025-03-20 17:08:31 +02:00
parent c5d4d140a4
commit 48b65e32c8

View File

@@ -127,7 +127,7 @@ HelperWidgets.ScrollView {
qsTr("<b>Content Library</b> is disabled inside a non-visual component.")
} else if (!root.materialsModel.bundleExists) {
qsTr("No materials available. Make sure you have an internet connection.")
} else if (!searchBox.isEmpty()) {
} else if (!searchBox.isEmpty() && root.materialsModel.isEmpty) {
qsTr("No match found.")
} else {
""