Switch some dirty hacking to using real infrastructure. A Chatline now contains three...
[quassel.git] / src / uisupport / bufferview.cpp
index c0e85ad..8e90fc6 100644 (file)
@@ -263,7 +263,11 @@ void BufferView::dataChanged(const QModelIndex &topLeft, const QModelIndex &bott
       continue;
 
     bool isActive = networkIdx.data(NetworkModel::ItemActiveRole).toBool();
+#ifdef SPUTDEV
+    if(isExpanded(networkIdx) != isActive) setExpanded(networkIdx, true);
+#else
     if(isExpanded(networkIdx) != isActive) setExpanded(networkIdx, isActive);
+#endif
   }
 }