GUI: Early return

This commit is contained in:
Daniel Marjamäki 2018-02-15 21:29:18 +01:00
parent cc2eb14130
commit f8c74032a7
1 changed files with 31 additions and 30 deletions

View File

@ -921,7 +921,9 @@ void ResultsTree::recheckSelectedFiles()
void ResultsTree::hideAllIdResult() void ResultsTree::hideAllIdResult()
{ {
if (mContextItem && mContextItem->parent()) { if (!mContextItem || !mContextItem->parent())
return;
// 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);
@ -959,7 +961,6 @@ void ResultsTree::hideAllIdResult()
refreshTree(); refreshTree();
emit resultsHidden(true); emit resultsHidden(true);
} }
}
void ResultsTree::suppressSelectedIds() void ResultsTree::suppressSelectedIds()
{ {