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 21:31:12 +0000 (22:31 +0100)
commit19e4ebd2227c47b98a060e3c8d5bad40d29dbeb9
tree0e111bfd170d200c059ab46f75e1289e20d4a677
parentb59bf22d688ac2f6c194b42fe6c656e5218f4778
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