GUI: Early return
This commit is contained in:
parent
cc2eb14130
commit
f8c74032a7
|
@ -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);
|
||||||
|
@ -958,7 +960,6 @@ void ResultsTree::hideAllIdResult()
|
||||||
|
|
||||||
refreshTree();
|
refreshTree();
|
||||||
emit resultsHidden(true);
|
emit resultsHidden(true);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ResultsTree::suppressSelectedIds()
|
void ResultsTree::suppressSelectedIds()
|
||||||
|
|
Loading…
Reference in New Issue