Fixed #8096 (GUI: crash in ResultsTree::AddErrorItem)
This commit is contained in:
parent
d818b4ace1
commit
cc2526c5c5
|
@ -187,6 +187,8 @@ bool ResultsTree::AddErrorItem(const ErrorItem &item)
|
||||||
hide,
|
hide,
|
||||||
":images/go-down.png",
|
":images/go-down.png",
|
||||||
true);
|
true);
|
||||||
|
if (!child_item)
|
||||||
|
continue;
|
||||||
|
|
||||||
//Add user data to that item
|
//Add user data to that item
|
||||||
QMap<QString, QVariant> child_data;
|
QMap<QString, QVariant> child_data;
|
||||||
|
@ -215,7 +217,7 @@ QStandardItem *ResultsTree::AddBacktraceFiles(QStandardItem *parent,
|
||||||
bool childOfMessage)
|
bool childOfMessage)
|
||||||
{
|
{
|
||||||
if (!parent) {
|
if (!parent) {
|
||||||
return 0;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<QStandardItem*> list;
|
QList<QStandardItem*> list;
|
||||||
|
@ -240,7 +242,7 @@ QStandardItem *ResultsTree::AddBacktraceFiles(QStandardItem *parent,
|
||||||
// the sixth column is the summary so check it last
|
// the sixth column is the summary so check it last
|
||||||
if (parent->child(i, 5)->text() == list[5]->text()) {
|
if (parent->child(i, 5)->text() == list[5]->text()) {
|
||||||
// this row matches so don't add it
|
// this row matches so don't add it
|
||||||
return 0;
|
return nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue