/***************************************************************************
- * Copyright (C) 2005-2010 by the Quassel Project *
+ * Copyright (C) 2005-2012 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
_bufferType = bufferTypeByTarget(_target);
- setTimestamp(timestamp);
+ if(timestamp.isValid())
+ setTimestamp(timestamp);
+ else
+ setTimestamp(QDateTime::currentDateTime());
}
BufferInfo::Type MessageEvent::bufferTypeByTarget(const QString &target) const {