projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
602dff8
)
minor fixes
author
Marcus Eggenberger
<egs@quassel-irc.org>
Thu, 13 Mar 2008 16:54:13 +0000
(16:54 +0000)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Thu, 13 Mar 2008 16:54:13 +0000
(16:54 +0000)
src/uisupport/nickviewfilter.cpp
patch
|
blob
|
history
diff --git
a/src/uisupport/nickviewfilter.cpp
b/src/uisupport/nickviewfilter.cpp
index
7a6e704
..
e4955ac
100644
(file)
--- 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>() == _bufferId);
}