X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fircserverhandler.cpp;h=33445c2db595c3c114413e63626c861e32c4b49d;hp=5c3fe827c40fb9f31d7ab30ed75a9de79f9c76d5;hb=9c04ad4547d00741a7b331d5e4bbe5f1426f495f;hpb=f48d324241a262695fed259e87bbf7cf83ab9df0 diff --git a/src/core/ircserverhandler.cpp b/src/core/ircserverhandler.cpp index 5c3fe827..33445c2d 100644 --- a/src/core/ircserverhandler.cpp +++ b/src/core/ircserverhandler.cpp @@ -36,11 +36,11 @@ IrcServerHandler::IrcServerHandler(CoreNetwork *parent) : BasicHandler(parent), _whois(false) { + connect(parent, SIGNAL(disconnected(NetworkId)), this, SLOT(destroyNetsplits())); } IrcServerHandler::~IrcServerHandler() { - if(!_netsplits.empty()) - qDeleteAll(_netsplits); + destroyNetsplits(); } /*! Handle a raw message string sent by the server. We try to find a suitable handler, otherwise we call a default handler. */ @@ -1164,6 +1164,10 @@ bool IrcServerHandler::checkParamCount(const QString &methodName, const QList