projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53b7881
)
Correctly remove buffers from the buffersyncer
author
Janne Koschinski
<janne@kuschku.de>
Fri, 22 Sep 2017 22:37:37 +0000
(
00:37
+0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Tue, 19 Dec 2017 20:09:37 +0000
(21:09 +0100)
I had forgotten to also remove buffers from the bufferactivity list
when they are being removed. This is now fixed.
src/common/buffersyncer.cpp
patch
|
blob
|
history
diff --git
a/src/common/buffersyncer.cpp
b/src/common/buffersyncer.cpp
index
27ded35
..
310dfa6
100644
(file)
--- a/
src/common/buffersyncer.cpp
+++ b/
src/common/buffersyncer.cpp
@@
-160,6
+160,8
@@
void BufferSyncer::removeBuffer(BufferId buffer)
_lastSeenMsg.remove(buffer);
if (_markerLines.contains(buffer))
_markerLines.remove(buffer);
+ if (_bufferActivities.contains(buffer))
+ _bufferActivities.remove(buffer);
SYNC(ARG(buffer))
emit bufferRemoved(buffer);
}
@@
-171,6
+173,8
@@
void BufferSyncer::mergeBuffersPermanently(BufferId buffer1, BufferId buffer2)
_lastSeenMsg.remove(buffer2);
if (_markerLines.contains(buffer2))
_markerLines.remove(buffer2);
+ if (_bufferActivities.contains(buffer2))
+ _bufferActivities.remove(buffer2);
SYNC(ARG(buffer1), ARG(buffer2))
emit buffersPermanentlyMerged(buffer1, buffer2);
}