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:44:24 +0000 (01:44 +0100)
commitf7d920731ede8ab4d597a783502875b23d96c6e7
tree483374706d808bc9e2470daf853536bb9fe57ffd
parent412b5319d090f122ae8c99be6578bc25023c8f24
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