Fix ticket #456 (GUI:: save only the results selected in view settings)

http://sourceforge.net/apps/trac/cppcheck/ticket/456
This commit is contained in:
Kimmo Varis 2009-07-04 22:29:48 +03:00
parent 6e378615cf
commit 81ab6a75c3
1 changed files with 3 additions and 2 deletions

View File

@ -547,7 +547,8 @@ void ResultsTree::SaveResults(Report *report)
for (int i = 0; i < mModel.rowCount(); i++) for (int i = 0; i < mModel.rowCount(); i++)
{ {
QStandardItem *item = mModel.item(i, 0); QStandardItem *item = mModel.item(i, 0);
SaveErrors(report, item); if (!isRowHidden(i, item->index()))
SaveErrors(report, item);
} }
report->WriteFooter(); report->WriteFooter();
@ -600,7 +601,7 @@ void ResultsTree::SaveErrors(Report *report, QStandardItem *item)
for (int i = 0; i < lines.count(); i++) for (int i = 0; i < lines.count(); i++)
linesStr << lines[i].toString(); linesStr << lines[i].toString();
report->WriteError(files, linesStr, id, severity, message); report->WriteError(files, linesStr, id, severity, message);
} }
} }