forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/5.0'
Conflicts: src/plugins/coreplugin/locator/executefilter.cpp Change-Id: Iff5b82a9e491b782e4720138904f389d318b005c
This commit is contained in:
@@ -732,6 +732,8 @@ void TestTreeModel::handleParseResult(const TestParseResult *result, TestTreeIte
|
||||
|
||||
// restore former check state and fail state if available
|
||||
newItem->forAllChildItems([this](TestTreeItem *childItem) {
|
||||
if (!m_checkStateCache) // parse results may arrive after session switch / project close
|
||||
return;
|
||||
Utils::optional<Qt::CheckState> cached = m_checkStateCache->get(childItem);
|
||||
if (cached.has_value())
|
||||
childItem->setData(0, cached.value(), Qt::CheckStateRole);
|
||||
|
||||
Reference in New Issue
Block a user