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

@@ -119,7 +119,7 @@ ResourceTopLevelNode::~ResourceTopLevelNode()
delete m_document;
}
void ResourceTopLevelNode::update()
void ResourceTopLevelNode::addInternalNodes()
{
QMap<PrefixFolderLang, QList<ProjectExplorer::FileNode *>> filesToAdd;
QMap<PrefixFolderLang, QList<ProjectExplorer::FolderNode *>> foldersToAddToFolders;
@@ -518,7 +518,8 @@ bool ResourceFileWatcher::reload(QString *errorString, ReloadFlag flag, ChangeTy
Q_UNUSED(flag)
if (type == TypePermissions)
return true;
m_node->update();
m_node->makeEmpty();
m_node->addInternalNodes();
return true;
}