projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e190d57
)
code cleanup
author
Marcus Eggenberger
<egs@quassel-irc.org>
Thu, 17 Apr 2008 11:38:08 +0000
(11:38 +0000)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Thu, 17 Apr 2008 11:38:08 +0000
(11:38 +0000)
src/uisupport/bufferviewfilter.cpp
patch
|
blob
|
history
diff --git
a/src/uisupport/bufferviewfilter.cpp
b/src/uisupport/bufferviewfilter.cpp
index
fa29358
..
58a053a
100644
(file)
--- a/
src/uisupport/bufferviewfilter.cpp
+++ b/
src/uisupport/bufferviewfilter.cpp
@@
-253,14
+253,16
@@
QVariant BufferViewFilter::foreground(const QModelIndex &index) const {
}
void BufferViewFilter::source_rowsInserted(const QModelIndex &parent, int start, int end) {
}
void BufferViewFilter::source_rowsInserted(const QModelIndex &parent, int start, int end) {
- if(parent.data(NetworkModel::ItemTypeRole) != NetworkModel::
Network
ItemType)
+ if(parent.data(NetworkModel::ItemTypeRole) != NetworkModel::
Buffer
ItemType)
return;
if(!config() || !config()->addNewBuffersAutomatically())
return;
return;
if(!config() || !config()->addNewBuffersAutomatically())
return;
+ QModelIndex child;
for(int row = start; row <= end; row++) {
for(int row = start; row <= end; row++) {
- addBuffer(parent.child(row, 0).data(NetworkModel::BufferIdRole).value<BufferId>());
+ child = sourceModel()->index(row, 0, parent);
+ addBuffer(sourceModel()->data(child, NetworkModel::BufferIdRole).value<BufferId>());
}
}
}
}