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:
parent
316893ace9
commit
3f922100af
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user