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:
parent
31f1c746b6
commit
bbbbc6aade
|
@ -1199,7 +1199,7 @@ void GenericChatForm::updateShowDateInfo(const ChatLine::Ptr& line)
|
||||||
{
|
{
|
||||||
const auto date = getTime(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()));
|
const auto dateText = QStringLiteral("<b>%1<\b>").arg(date.toString(Settings::getInstance().getDateFormat()));
|
||||||
dateInfo->setText(dateText);
|
dateInfo->setText(dateText);
|
||||||
dateInfo->setVisible(true);
|
dateInfo->setVisible(true);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user