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:
894d66d
)
Got rid of those bugging QPainter errors
author
Marcus Eggenberger
<egs@quassel-irc.org>
Sat, 20 Oct 2007 13:37:31 +0000
(13:37 +0000)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Sat, 20 Oct 2007 13:37:31 +0000
(13:37 +0000)
src/qtui/bufferview.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/bufferview.cpp
b/src/qtui/bufferview.cpp
index
17f637b
..
b5460db
100644
(file)
--- a/
src/qtui/bufferview.cpp
+++ b/
src/qtui/bufferview.cpp
@@
-96,7
+96,10
@@
void BufferView::keyPressEvent(QKeyEvent *event) {
// ensure that newly inserted network nodes are expanded per default
void BufferView::rowsInserted(const QModelIndex & parent, int start, int end) {
- if(parent == QModelIndex())
- setExpanded(model()->index(start, 0, parent), true);
QTreeView::rowsInserted(parent, start, end);
+ if(model()->rowCount(parent) == 1 && parent != QModelIndex()) {
+ // without updating the parent the expand will have no effect... Qt Bug?
+ update(parent);
+ expand(parent);
+ }
}