1
0
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:
tux3 2015-07-01 13:55:45 +02:00
commit 4277ad832a
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -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());
}