1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(friendlist): don't skip half of friends when sorting by activity

This commit is contained in:
Anthony Bilinski 2019-05-16 17:20:50 -07:00
parent 316893ace9
commit 3f922100af
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -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) {