Reset the BufferViewFilter after setting a new config
authorManuel Nickschas <sputnick@quassel-irc.org>
Sun, 14 Mar 2010 12:51:02 +0000 (13:51 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 14 Mar 2010 12:51:02 +0000 (13:51 +0100)
commit617a3966941742a4e235af440d3665d0274354a8
tree6f25727326141681224c49e2a3044628a048302c
parentb7c4bc3c2d51d3a48e86963d61b36960b5f5de21
Reset the BufferViewFilter after setting a new config

I'm not sure why, but somehow BufferView crashes in rare occasions because of invalid modelindexes
if we don't reset the BufferModel after setting its config. This is even true if we haven't set
a source model before, so an attached View couldn't even get any invalid indexes in the first
place. Anyway, it stops Quassel from crashing here, so I shouldn't complain, I guess.

This hopefully fixes #663, the Heisenbug that has haunted us for a long time now. At least for me.
src/uisupport/bufferview.cpp
src/uisupport/bufferviewfilter.cpp
src/uisupport/bufferviewfilter.h