forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.7'
Conflicts: src/plugins/clangtools/clangtoolruncontrol.cpp src/plugins/cpptools/compileroptionsbuilder.cpp Change-Id: Ib1e8abf066898b50c90fc1ccba4697fe983e8a8f
This commit is contained in:
@@ -346,13 +346,13 @@ static void applyParentCheckState(TestTreeItem *parent, TestTreeItem *newItem)
|
||||
void TestTreeModel::insertItemInParent(TestTreeItem *item, TestTreeItem *root, bool groupingEnabled)
|
||||
{
|
||||
TestTreeItem *parentNode = root;
|
||||
if (groupingEnabled) {
|
||||
if (groupingEnabled && item->isGroupable()) {
|
||||
parentNode = root->findFirstLevelChild([item] (const TestTreeItem *it) {
|
||||
return it->isGroupNodeFor(item);
|
||||
});
|
||||
if (!parentNode) {
|
||||
parentNode = item->createParentGroupNode();
|
||||
if (!parentNode) // we might not get a group node at all
|
||||
if (!QTC_GUARD(parentNode)) // we might not get a group node at all
|
||||
parentNode = root;
|
||||
else
|
||||
root->appendChild(parentNode);
|
||||
|
||||
Reference in New Issue
Block a user