Fix disconnected networks not collapsing on login
authorShane Synan <digitalcircuit36939@gmail.com>
Tue, 26 Jul 2016 21:42:45 +0000 (17:42 -0400)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 14 Sep 2016 20:41:25 +0000 (22:41 +0200)
Remove call to expandAll() - later calls to setExpandedState() should
automatically expand connected networks.

Before, Qt4 would collapse disconnected networks and expand connected
networks, but Qt5 would always expand both.  After, both collapse
disconnected and expand connected.

Resolves GH-237.

src/uisupport/bufferview.cpp

index 8c28ac0..dd1cbaf 100644 (file)
@@ -69,7 +69,7 @@ void BufferView::init()
     hideColumn(2);
     setIndentation(10);
 
-    expandAll();
+    // New entries will be expanded automatically when added; no need to call expandAll()
 
     header()->hide(); // nobody seems to use this anyway