projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Now activity sync should work... and yes, I did accidentally stop the core _again_...
[quassel.git]
/
src
/
common
/
buffersyncer.cpp
diff --git
a/src/common/buffersyncer.cpp
b/src/common/buffersyncer.cpp
index
b97d233
..
227370c
100644
(file)
--- a/
src/common/buffersyncer.cpp
+++ b/
src/common/buffersyncer.cpp
@@
-32,7
+32,8
@@
QDateTime BufferSyncer::lastSeen(BufferId buffer) const {
}
bool BufferSyncer::setLastSeen(BufferId buffer, const QDateTime &time) {
}
bool BufferSyncer::setLastSeen(BufferId buffer, const QDateTime &time) {
- if(_lastSeen[buffer] < time) {
+ if(!time.isValid()) return false;
+ if(!lastSeen(buffer).isValid() || lastSeen(buffer) < time) {
_lastSeen[buffer] = time;
emit lastSeenSet(buffer, time);
return true;
_lastSeen[buffer] = time;
emit lastSeenSet(buffer, time);
return true;