From fee29a2c223027f15ac911809ec4fcbbf74a0e4c Mon Sep 17 00:00:00 2001 From: Marcus Eggenberger Date: Thu, 13 Mar 2008 16:54:13 +0000 Subject: [PATCH] minor fixes --- src/uisupport/nickviewfilter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/uisupport/nickviewfilter.cpp b/src/uisupport/nickviewfilter.cpp index 7a6e704b..e4955ac5 100644 --- a/src/uisupport/nickviewfilter.cpp +++ b/src/uisupport/nickviewfilter.cpp @@ -67,6 +67,10 @@ QVariant NickViewFilter::foreground(const QModelIndex &index) const { bool NickViewFilter::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const { + // root node, networkindexes, the bufferindex of the buffer this filter is active for and it's childs are accepted + if(!source_parent.isValid()) + return true; + QModelIndex source_child = source_parent.child(source_row, 0); return (sourceModel()->data(source_child, NetworkModel::BufferIdRole).value() == _bufferId); } -- 2.20.1