summaryrefslogtreecommitdiff
path: root/share/qtcreator/qmldesigner/itemLibraryQmlSources
diff options
context:
space:
mode:
authorMahmoud Badri <mahmoud.badri@qt.io>2022-02-11 14:00:22 +0200
committerMahmoud Badri <mahmoud.badri@qt.io>2022-02-14 17:12:33 +0000
commitd1fd23100a6ce4e6f881e6567451c96a3d543da6 (patch)
tree942329c2120142ed7890c0df27f78a53b36fd2e7 /share/qtcreator/qmldesigner/itemLibraryQmlSources
parentf78f0cc6cb57ef7bd2f5901556ee85200cf1a402 (diff)
downloadqt-creator-d1fd23100a6ce4e6f881e6567451c96a3d543da6.tar.gz
QmlDesigner: Fix assets library warning case
Fixed a warning that appears if the search moves from the "no match found" case to a match case. Also added a small optimization to searching. Change-Id: I9e4759fe00959bcbe1a7018c1bdc6cc43069fca7 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'share/qtcreator/qmldesigner/itemLibraryQmlSources')
-rw-r--r--share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml b/share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml
index 2efe499f0f..872afff1ac 100644
--- a/share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml
+++ b/share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml
@@ -445,7 +445,7 @@ Item {
hideHeader: dirDepth === 0
showLeftBorder: dirDepth > 0
expanded: dirExpanded
- visible: !assetsModel.isEmpty && dirVisible
+ visible: dirVisible
expandOnClick: false
useDefaulContextMenu: false