Fix expanding networks in Chat Monitor settings
authorShane Synan <digitalcircuit36939@gmail.com>
Sat, 14 Jan 2017 20:54:53 +0000 (14:54 -0600)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 4 Apr 2018 21:14:03 +0000 (23:14 +0200)
commite30092afc1803d753914a7ab9fa88bba818de559
treea9d18160571eb4454af1d7e26321a0de28ef4b8a
parentaab02573197e93132c9263df28b23ec718c4e9b4
Fix expanding networks in Chat Monitor settings

Update the network expanded/collapsed state when setting a model,
including filtered models.

This fixes the Chat Monitor settings page not updating the expanded
and collapsed networks on first load.  It might be excessive to apply
on every model change; if performance issues arise, it can be moved
to BufferView::setFilteredModel() or elsewhere.

Add comments!

Resolves GH-271.

(cherry picked from commit efee441a243efb88929e1e275d71ee27991bf074)
src/uisupport/bufferview.cpp
src/uisupport/bufferview.h