Fix issues with buffer selection and filtered views
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 8 Feb 2016 20:04:03 +0000 (21:04 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 8 Feb 2016 20:04:03 +0000 (21:04 +0100)
commit30cc5367bf38d8720e55ece5cab218c4b52e0dbf
tree2842107a4a2282e90ad4a39820301eb38659a7dc
parentbd2417d2ac819a46436c4f029c880d7f26b9e2a2
Fix issues with buffer selection and filtered views

Whenever the current buffer changed, filtered BufferViews need to
check if the previously selected item should be hidden (e.g. due to
activity settings). The existing code for this never really worked
due to the currentChanged() signal emission being wonky (it would
sometimes be eaten for some reason), and fully stopped working in
Qt5 since it connected to a private, internal slot of QSFPM.

This commit removes the old code and replaces it by faking the
emission of a dataChanged() signal from the base model whenever
the current buffer changes.
src/client/selectionmodelsynchronizer.cpp
src/uisupport/bufferview.cpp
src/uisupport/bufferview.h
src/uisupport/bufferviewfilter.cpp
src/uisupport/bufferviewfilter.h