projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
07171f8
)
Fixing BR #188. This might fix X Errors (BadDrawable) aswell
author
Marcus Eggenberger
<egs@quassel-irc.org>
Mon, 23 Jun 2008 23:01:00 +0000
(
01:01
+0200)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Mon, 23 Jun 2008 23:01:14 +0000
(
01:01
+0200)
src/uisupport/bufferview.cpp
patch
|
blob
|
history
diff --git
a/src/uisupport/bufferview.cpp
b/src/uisupport/bufferview.cpp
index
fca441e
..
de2ced7
100644
(file)
--- a/
src/uisupport/bufferview.cpp
+++ b/
src/uisupport/bufferview.cpp
@@
-271,11
+271,9
@@
void BufferView::layoutChanged() {
QModelIndex networkIdx;
for(int row = 0; row < model()->rowCount(); row++) {
networkIdx = model()->index(row, 0);
QModelIndex networkIdx;
for(int row = 0; row < model()->rowCount(); row++) {
networkIdx = model()->index(row, 0);
- update(networkIdx);
if(model()->rowCount(networkIdx) > 0 && model()->data(networkIdx, NetworkModel::ItemActiveRole) == true) {
if(model()->rowCount(networkIdx) > 0 && model()->data(networkIdx, NetworkModel::ItemActiveRole) == true) {
+ update(networkIdx);
expand(networkIdx);
expand(networkIdx);
- } else {
- collapse(networkIdx);
}
}
}
}
@@
-289,6
+287,7
@@
void BufferView::layoutChanged() {
}
void BufferView::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight) {
}
void BufferView::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight) {
+ qDebug() << "dataChanged()";
QTreeView::dataChanged(topLeft, bottomRight);
// determine how many items have been changed and if any of them is a networkitem
QTreeView::dataChanged(topLeft, bottomRight);
// determine how many items have been changed and if any of them is a networkitem