From 4fd89d525a5b1beba2e11fbf7dd262a847924e28 Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Mon, 29 Feb 2016 14:39:46 +0100 Subject: [PATCH] Don't show functions that triggered no temporary allocations in top list. --- gui/topproxy.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gui/topproxy.cpp b/gui/topproxy.cpp index f396337..62364df 100644 --- a/gui/topproxy.cpp +++ b/gui/topproxy.cpp @@ -59,9 +59,11 @@ bool TopProxy::filterAcceptsRow(int source_row, const QModelIndex& source_parent // only show top rows return false; } - if (m_type == Leaked && !sourceModel()->index(source_row, TreeModel::LeakedColumn).data(TreeModel::SortRole).toULongLong()) { - // don't show rows that didn't leak anything - return false; + if (m_type == Leaked || m_type == Temporary) { + if (!sourceModel()->index(source_row, toSource(m_type)).data(TreeModel::SortRole).toULongLong()) { + // don't show rows that didn't leak anything, or didn't trigger any temporary allocations + return false; + } } return true; } -- 2.7.4