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

fix: hide current date at the top of the chat

This commit is contained in:
TriKriSta 2019-09-07 17:38:16 +03:00 committed by Anthony Bilinski
parent 31f1c746b6
commit bbbbc6aade
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);