mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge branch 'pr1949'
This commit is contained in:
commit
4277ad832a
|
@ -276,6 +276,8 @@ void FriendListWidget::setMode(Mode mode)
|
|||
{
|
||||
QDate activityDate = getDateFriend(contact);
|
||||
Time time = getTime(activityDate);
|
||||
if (!last7DaysWasLastMonth())
|
||||
time = static_cast<Time>(time-1);
|
||||
CategoryWidget* categoryWidget = dynamic_cast<CategoryWidget*>(activityLayout->itemAt(time)->widget());
|
||||
categoryWidget->addFriendWidget(contact->getFriendWidget(), contact->getStatus());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user