mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
patch from phenom to fix date display in chat history
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6638 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c3af05b0bf
commit
08a8868865
@ -526,7 +526,6 @@ void ChatWidget::addChatMsg(bool incoming, const QString &name, const QDateTime
|
||||
bool addDate = false;
|
||||
if (QDate::currentDate()>lastMsgDate)
|
||||
{
|
||||
lastMsgDate=QDate::currentDate();
|
||||
addDate=true;
|
||||
}
|
||||
|
||||
@ -560,6 +559,7 @@ void ChatWidget::addChatMsg(bool incoming, const QString &name, const QDateTime
|
||||
} else if (chatType == TYPE_SYSTEM) {
|
||||
type = ChatStyle::FORMATMSG_SYSTEM;
|
||||
} else if (chatType == TYPE_HISTORY || addDate) {
|
||||
lastMsgDate=QDate::currentDate();
|
||||
type = incoming ? ChatStyle::FORMATMSG_HINCOMING : ChatStyle::FORMATMSG_HOUTGOING;
|
||||
} else {
|
||||
type = incoming ? ChatStyle::FORMATMSG_INCOMING : ChatStyle::FORMATMSG_OUTGOING;
|
||||
|
Loading…
Reference in New Issue
Block a user