diff --git a/src/plugins/valgrind/xmlprotocol/errorlistmodel.cpp b/src/plugins/valgrind/xmlprotocol/errorlistmodel.cpp index 280b2aec49f..f5ac682c78d 100644 --- a/src/plugins/valgrind/xmlprotocol/errorlistmodel.cpp +++ b/src/plugins/valgrind/xmlprotocol/errorlistmodel.cpp @@ -239,7 +239,7 @@ int ErrorListModel::rowCount(const QModelIndex &parent) const { if (parent.isValid()) return 0; - return qMax(1, d->errors.count()); + return d->errors.count(); } int ErrorListModel::columnCount(const QModelIndex &parent) const