From a7f57c2cb58e72b3b15deaec02d83afa0f00cd3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 10 Feb 2020 21:07:14 +0100 Subject: [PATCH] GUI: Improved 'Safe functions' --- gui/resultsview.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gui/resultsview.cpp b/gui/resultsview.cpp index 26ea4a51f..52a212fa3 100644 --- a/gui/resultsview.cpp +++ b/gui/resultsview.cpp @@ -435,7 +435,12 @@ void ResultsView::debugError(const ErrorItem &item) 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()