From: Marcus Eggenberger Date: Mon, 23 Jun 2008 23:01:00 +0000 (+0200) Subject: Fixing BR #188. This might fix X Errors (BadDrawable) aswell X-Git-Tag: 0.3.0~350 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=39920494900e7d321677dee5e14f63408e07bcd0 Fixing BR #188. This might fix X Errors (BadDrawable) aswell --- diff --git a/src/uisupport/bufferview.cpp b/src/uisupport/bufferview.cpp index fca441ee..de2ced7b 100644 --- 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); - update(networkIdx); if(model()->rowCount(networkIdx) > 0 && model()->data(networkIdx, NetworkModel::ItemActiveRole) == true) { + update(networkIdx); expand(networkIdx); - } else { - collapse(networkIdx); } } @@ -289,6 +287,7 @@ void BufferView::layoutChanged() { } 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