Fixed #5662 (GUI - Save results missing some entries)

Use empty parent index as we test top level items.
This commit is contained in:
Aleksandr Pikalev 2015-11-12 21:01:43 +03:00 committed by PKEuS
parent b10110b5ac
commit c0191b25ac
1 changed files with 1 additions and 1 deletions

View File

@ -903,7 +903,7 @@ void ResultsTree::SaveResults(Report *report) const
for (int i = 0; i < mModel.rowCount(); i++) {
QStandardItem *item = mModel.item(i, 0);
if (!isRowHidden(i, item->index()))
if (!isRowHidden(i, QModelIndex()))
SaveErrors(report, item);
}