projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
21e623b
)
bufferSyncer checks now for valid BufferIds
author
Marcus Eggenberger
<egs@quassel-irc.org>
Tue, 19 Feb 2008 00:29:43 +0000
(
00:29
+0000)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Tue, 19 Feb 2008 00:29:43 +0000
(
00:29
+0000)
src/common/buffersyncer.cpp
patch
|
blob
|
history
diff --git
a/src/common/buffersyncer.cpp
b/src/common/buffersyncer.cpp
index
b97d233
..
7fe424f
100644
(file)
--- a/
src/common/buffersyncer.cpp
+++ b/
src/common/buffersyncer.cpp
@@
-32,6
+32,9
@@
QDateTime BufferSyncer::lastSeen(BufferId buffer) const {
}
bool BufferSyncer::setLastSeen(BufferId buffer, const QDateTime &time) {
+ if(!_lastSeen.contains(buffer))
+ return false;
+
if(_lastSeen[buffer] < time) {
_lastSeen[buffer] = time;
emit lastSeenSet(buffer, time);