X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fclient.cpp;h=d8e797b8416e0835671ab21d1d871ec1b6419113;hb=454b258ae19e43133eb929b5b88b0440687b3084;hp=457b5c0382205c360ef63a2fee4e893250af6674;hpb=11486aa5f1036684bcb75eceb541fc297d20a856;p=quassel.git diff --git a/src/client/client.cpp b/src/client/client.cpp index 457b5c03..d8e797b8 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -240,7 +240,8 @@ void Client::coreNetworkCreated(NetworkId id) { } void Client::coreNetworkRemoved(NetworkId id) { - if(!_networks.contains(id)) return; + if(!_networks.contains(id)) + return; Network *net = _networks.take(id); emit networkRemoved(net->networkId()); net->deleteLater(); @@ -615,10 +616,11 @@ void Client::removeBuffer(BufferId id) { } void Client::bufferRemoved(BufferId bufferId) { - // first remove the buffer from has. this prohibits further lastSeenUpdates + // first remove the buffer from hash. this prohibits further lastSeenUpdates Buffer *buff = 0; if(_buffers.contains(bufferId)) { buff = _buffers.take(bufferId); + layoutQueue.removeAll(buff); disconnect(buff, 0, this, 0); }