forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/10.0'
Change-Id: I7a3925ad8e4f97461b64a70217102ed900430253
This commit is contained in:
@@ -105,7 +105,9 @@ Internal::PresetsData CMakeProject::combinePresets(Internal::PresetsData &cmakeP
|
||||
Utils::sort(presetsList, [](const auto &left, const auto &right) {
|
||||
const bool sameInheritance = left.inherits && right.inherits
|
||||
&& left.inherits.value() == right.inherits.value();
|
||||
if (!left.inherits || left.inherits.value().contains(right.name) || sameInheritance)
|
||||
const bool leftInheritsRight = left.inherits
|
||||
&& left.inherits.value().contains(right.name);
|
||||
if ((left.inherits && !right.inherits) || leftInheritsRight || sameInheritance)
|
||||
return false;
|
||||
return true;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user