summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3ec6f31)
While we can probable leave the timestamp uninitialized for other event types, we certainly
always need a valid time for messages.
_bufferType = bufferTypeByTarget(_target);
_bufferType = bufferTypeByTarget(_target);
- setTimestamp(timestamp);
+ if(timestamp.isValid())
+ setTimestamp(timestamp);
+ else
+ setTimestamp(QDateTime::currentDateTime());
}
BufferInfo::Type MessageEvent::bufferTypeByTarget(const QString &target) const {
}
BufferInfo::Type MessageEvent::bufferTypeByTarget(const QString &target) const {