X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fircserverhandler.cpp;h=d51bb0d688d2732318bdc5f312318abd318ad82c;hp=5c3fe827c40fb9f31d7ab30ed75a9de79f9c76d5;hb=863b09125c3bed80b3dfa65eacf587d8bcd3e1e3;hpb=f48d324241a262695fed259e87bbf7cf83ab9df0 diff --git a/src/core/ircserverhandler.cpp b/src/core/ircserverhandler.cpp index 5c3fe827..d51bb0d6 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,11 @@ bool IrcServerHandler::checkParamCount(const QString &methodName, const QList