From 08a886886581a3e518d2a4c67d2a9563cc4da8d5 Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 28 Aug 2013 20:25:06 +0000 Subject: [PATCH] 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 --- retroshare-gui/src/gui/chat/ChatWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/chat/ChatWidget.cpp b/retroshare-gui/src/gui/chat/ChatWidget.cpp index f2c5d9676..9f3113e84 100644 --- a/retroshare-gui/src/gui/chat/ChatWidget.cpp +++ b/retroshare-gui/src/gui/chat/ChatWidget.cpp @@ -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;