Don't crash after displaying a connection error popup
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 21 Nov 2013 23:39:29 +0000 (00:39 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 21 Nov 2013 23:43:08 +0000 (00:43 +0100)
commitfaefc2e0da94911b628a56b7274c96e980189928
tree5ee4e793e19688fba2d2c6d245024bbb2d53a0d4
parent604e903a7b8b32617ca3f96e5aacb64f2744a001
Don't crash after displaying a connection error popup

Error popups are modal dialogs running a nested event loop, which means
that events will continue to be processed while the popup is showing.
In this particular case, the socket would close, and the authhandler calling
the popup synchronously would be deleted, leading to a segfault when closing
the popup.

Making this a queued connection prevents this from happening, as control is
not going to be returned to the deleted authhandler that way.
src/client/coreconnection.cpp