aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/resourceeditor
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2019-07-23 12:44:34 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2019-07-23 11:08:24 +0000
commit9b1edfb37115250e1faef315816673770d89deab (patch)
treeff60a1863d94c48ea545661d969511fb52e7f3f6 /src/plugins/resourceeditor
parentf03989c09f2e9afed7658b6e3b26870873175682 (diff)
ProjectExplorer: Do not hide empty qrc files
This broke with 92da9d1e67. Fixes: QTCREATORBUG-22737 Change-Id: Ic4ec9f298e3e7c1b35b1c94096e5684555f48b2b Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/resourceeditor')
-rw-r--r--src/plugins/resourceeditor/resourcenode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/resourceeditor/resourcenode.cpp b/src/plugins/resourceeditor/resourcenode.cpp
index baf214a2be..c3eb7c24b1 100644
--- a/src/plugins/resourceeditor/resourcenode.cpp
+++ b/src/plugins/resourceeditor/resourcenode.cpp
@@ -233,6 +233,7 @@ ResourceTopLevelNode::ResourceTopLevelNode(const FilePath &filePath,
setPriority(Node::DefaultFilePriority);
setListInProject(true);
setAddFileFilter("*.png; *.jpg; *.gif; *.svg; *.ico; *.qml; *.qml.ui");
+ setShowWhenEmpty(true);
if (!filePath.isEmpty()) {
QFileInfo fi = filePath.toFileInfo();
@@ -468,7 +469,6 @@ ResourceFolderNode::ResourceFolderNode(const QString &prefix, const QString &lan
m_prefix(prefix),
m_lang(lang)
{
- setShowWhenEmpty(true);
}
ResourceFolderNode::~ResourceFolderNode() = default;