X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fnetworkmodel.cpp;h=6c6a3e806f2f3271bb2735895a3eb8b09f46621e;hb=5cda35fc55cf023172cdf81303cf6b617efc9775;hp=9a16ac176a8e1466b50ffc732593faa6e3938ca6;hpb=f2e4609f070221a010eef8be98524c5ce88d228b;p=quassel.git diff --git a/src/client/networkmodel.cpp b/src/client/networkmodel.cpp index 9a16ac17..6c6a3e80 100644 --- a/src/client/networkmodel.cpp +++ b/src/client/networkmodel.cpp @@ -144,6 +144,9 @@ void BufferItem::attachIrcChannel(IrcChannel *ircChannel) { } void BufferItem::ircChannelDestroyed() { + Q_CHECK_PTR(_ircChannel); + disconnect(_ircChannel, 0, this, 0); + _ircChannel = 0; emit dataChanged(); removeAllChilds(); }