Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(friendlist): don't skip half of friends when sorting by activity
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonybilinski committed May 17, 2019
1 parent 316893a commit 3f92210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widget/friendlistwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ void FriendListWidget::setMode(Mode mode)

void FriendListWidget::moveFriends(QLayout* layout)
{
for (int i = 0; i < layout->count(); i++) {
QWidget* widget = layout->itemAt(i)->widget();
while (!layout->isEmpty()) {
QWidget* widget = layout->itemAt(0)->widget();
FriendWidget* friendWidget = qobject_cast<FriendWidget*>(widget);
CircleWidget* circleWidget = qobject_cast<CircleWidget*>(widget);
if (circleWidget) {
Expand Down

0 comments on commit 3f92210

Please sign in to comment.