forked from qt-creator/qt-creator
ResourceNode: Fix matching on '/' node
A ResourceTopLevelNode should only prioritize it's own child '/' node. Task-number: QTCREATORBUG-12297 Change-Id: Ia9834d7111622d4558e1a2c21b602b11ff5db139 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -256,7 +256,7 @@ ProjectExplorer::FolderNode::AddNewInformation ResourceTopLevelNode::addNewInfor
|
|||||||
// two nodes would be responsible for '/'
|
// two nodes would be responsible for '/'
|
||||||
// Thus also return a high priority for it
|
// Thus also return a high priority for it
|
||||||
if (ResourceFolderNode *rfn = qobject_cast<ResourceFolderNode *>(context))
|
if (ResourceFolderNode *rfn = qobject_cast<ResourceFolderNode *>(context))
|
||||||
if (rfn->prefix() == QLatin1String("/"))
|
if (rfn->prefix() == QLatin1String("/") && rfn->parentFolderNode() == this)
|
||||||
p = 150;
|
p = 150;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user