1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge pull request #5819

TriKriSta (1):
      fix: hide current date at the top of the chat
This commit is contained in:
Anthony Bilinski 2019-09-15 18:46:21 -07:00
commit f846b6cdaa
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -1199,7 +1199,7 @@ void GenericChatForm::updateShowDateInfo(const ChatLine::Ptr& line)
{
const auto date = getTime(line);
if (date.isValid() && date != QDateTime::currentDateTime()) {
if (date.isValid() && date.date() != QDate::currentDate()) {
const auto dateText = QStringLiteral("<b>%1<\b>").arg(date.toString(Settings::getInstance().getDateFormat()));
dateInfo->setText(dateText);
dateInfo->setVisible(true);