GUI: Quick fix for a crash when mContextItem->parent() is NULL

This commit is contained in:
Daniel Marjamäki 2015-09-04 20:04:31 +02:00
parent 6479256f11
commit 41d7e8e1f0
1 changed files with 1 additions and 1 deletions

View File

@ -776,7 +776,7 @@ void ResultsTree::HideResult()
void ResultsTree::HideAllIdResult()
{
if (mContextItem) {
if (mContextItem && mContextItem->parent()) {
// Make sure we are working with the first column
if (mContextItem->column() != 0)
mContextItem = mContextItem->parent()->child(mContextItem->row(), 0);