Skip to content
Snippets Groups Projects
Commit 254ecd19 authored by Daniel Teske's avatar Daniel Teske Committed by Eike Ziller
Browse files

ResourceNodes: Fix adding to prefix '/' node


Change-Id: I663fd2ae419e6bad990223dd5c2c38dd62e2f35c
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 65e1923f
No related branches found
No related tags found
No related merge requests found
......@@ -252,6 +252,12 @@ ProjectExplorer::FolderNode::AddNewInformation ResourceTopLevelNode::addNewInfor
p = 125;
else if (projectNode() == context)
p = 150; // steal from our project node
// The ResourceFolderNode '/' defers to us, as otherwise
// two nodes would be responsible for '/'
// Thus also return a high priority for it
if (ResourceFolderNode *rfn = qobject_cast<ResourceFolderNode *>(context))
if (rfn->prefix() == QLatin1String("/"))
p = 150;
}
return AddNewInformation(name, p);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment