ProjectExplorer: Fix display of .qrc contents

Change-Id: I2779e12daa8a7972380f51b72a56de3466d453a5
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
hjk
2017-01-30 14:26:44 +01:00
parent e8b4e180cd
commit cbfedd4328
5 changed files with 14 additions and 5 deletions

View File

@@ -451,7 +451,9 @@ struct InternalNode
// If the cumulative evaluation botched the file too much, try the exact one.
if (contents.isEmpty())
vfs->readVirtualFile(file.toString(), QMakeVfs::VfsExact, &contents);
folder->addFolderNode(new ResourceEditor::ResourceTopLevelNode(file, contents, folder));
auto resourceNode = new ResourceEditor::ResourceTopLevelNode(file, contents, folder);
folder->addFolderNode(resourceNode);
resourceNode->addInternalNodes();
}
} else {
for (const FileName &file : files)