X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmessageevent.cpp;fp=src%2Fcommon%2Fmessageevent.cpp;h=d872da7ec312d9384f7436cc1fa9acb1c6846e0f;hb=7a9c84596a4bb5d6742e98d4adf2d22ccec62a42;hp=70857d82a717f1c1196f4714c889b3892e4d0dad;hpb=3ec6f311bb4fff1540a01c26069300ad17f6d134;p=quassel.git diff --git a/src/common/messageevent.cpp b/src/common/messageevent.cpp index 70857d82..d872da7e 100644 --- a/src/common/messageevent.cpp +++ b/src/common/messageevent.cpp @@ -41,7 +41,10 @@ MessageEvent::MessageEvent(Message::Type msgType, Network *net, const QString &m _bufferType = bufferTypeByTarget(_target); - setTimestamp(timestamp); + if(timestamp.isValid()) + setTimestamp(timestamp); + else + setTimestamp(QDateTime::currentDateTime()); } BufferInfo::Type MessageEvent::bufferTypeByTarget(const QString &target) const {