X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fclient%2Fnetworkmodel.cpp;h=6c6a3e806f2f3271bb2735895a3eb8b09f46621e;hb=4ba498c04b9aefee2e3ab9d2eb0645f86e5d1968;hp=9a16ac176a8e1466b50ffc732593faa6e3938ca6;hpb=8bae520ba868e36a2b53028f0571a022172abeb5;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(); }