Only expand network items in bufferviews.
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 19 Jun 2007 12:26:32 +0000 (12:26 +0000)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 19 Jun 2007 12:26:32 +0000 (12:26 +0000)
gui/bufferview.cpp

index 7e2cf21..03ab758 100644 (file)
@@ -108,5 +108,5 @@ void BufferView::dragEnterEvent(QDragEnterEvent *event) {
 }
 
 void BufferView::rowsInserted(const QModelIndex & parent, int start, int end) {
-  setExpanded(parent, true);
+  if(parent.parent() == QModelIndex()) setExpanded(parent, true);
 }