From bbbbc6aade1b32485888b1842db15f65167fbf81 Mon Sep 17 00:00:00 2001 From: TriKriSta Date: Sat, 7 Sep 2019 17:38:16 +0300 Subject: [PATCH] fix: hide current date at the top of the chat --- src/widget/form/genericchatform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/form/genericchatform.cpp b/src/widget/form/genericchatform.cpp index 02e572e3f..3b97feb46 100644 --- a/src/widget/form/genericchatform.cpp +++ b/src/widget/form/genericchatform.cpp @@ -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("%1<\b>").arg(date.toString(Settings::getInstance().getDateFormat())); dateInfo->setText(dateText); dateInfo->setVisible(true);