_bufferType = bufferTypeByTarget(_target);
- setTimestamp(timestamp);
+ if(timestamp.isValid())
+ setTimestamp(timestamp);
+ else
+ setTimestamp(QDateTime::currentDateTime());
}
BufferInfo::Type MessageEvent::bufferTypeByTarget(const QString &target) const {