GUI: Quick fix for a crash when mContextItem->parent() is NULL
This commit is contained in:
parent
6479256f11
commit
41d7e8e1f0
|
@ -776,7 +776,7 @@ void ResultsTree::HideResult()
|
||||||
|
|
||||||
void ResultsTree::HideAllIdResult()
|
void ResultsTree::HideAllIdResult()
|
||||||
{
|
{
|
||||||
if (mContextItem) {
|
if (mContextItem && mContextItem->parent()) {
|
||||||
// Make sure we are working with the first column
|
// Make sure we are working with the first column
|
||||||
if (mContextItem->column() != 0)
|
if (mContextItem->column() != 0)
|
||||||
mContextItem = mContextItem->parent()->child(mContextItem->row(), 0);
|
mContextItem = mContextItem->parent()->child(mContextItem->row(), 0);
|
||||||
|
|
Loading…
Reference in New Issue