GUI: Improved 'Safe functions'

This commit is contained in:
Daniel Marjamäki 2020-02-10 21:07:14 +01:00
parent f31447943c
commit a7f57c2cb5
1 changed files with 6 additions and 1 deletions

View File

@ -435,7 +435,12 @@ void ResultsView::debugError(const ErrorItem &item)
void ResultsView::bughuntingReportLine(QString line) void ResultsView::bughuntingReportLine(QString line)
{ {
mUI.mListSafeFunctions->addItem(line); for (QString s: line.split("\n")) {
if (s.isEmpty())
continue;
if (s.startsWith("[function-report] "))
mUI.mListSafeFunctions->addItem(s.mid(s.lastIndexOf(":") + 1));
}
} }
void ResultsView::logClear() void ResultsView::logClear()