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:
commit
f846b6cdaa
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user