Make sure NickView::customEvent() has a valid model
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 9 Nov 2009 00:44:24 +0000 (01:44 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 9 Nov 2009 00:46:05 +0000 (01:46 +0100)
commitf0502bc0352f04ba9146601f802ddeed8a9b907b
tree542c3619a1106ff8f4ff6387c8f5e1eceb9920e3
parentb22b2122c8765fce269c0ba598ef0976a800177d
Make sure NickView::customEvent() has a valid model

We've gotten backtraces that indicate crashes in this method, and all that I can
see could be wrong is an invalid model() pointer. Can't really explain that for now,
but let's introduce a check just to make sure.
src/uisupport/nickview.cpp