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
...@@ -252,6 +252,12 @@ ProjectExplorer::FolderNode::AddNewInformation ResourceTopLevelNode::addNewInfor ...@@ -252,6 +252,12 @@ ProjectExplorer::FolderNode::AddNewInformation ResourceTopLevelNode::addNewInfor
p = 125; p = 125;
else if (projectNode() == context) else if (projectNode() == context)
p = 150; // steal from our project node 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); return AddNewInformation(name, p);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment