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

fix: Fix freez on circle removing

Fix #4419
This commit is contained in:
Diadlo 2017-05-27 15:35:44 +03:00
parent dd60edb3d7
commit 4d15aed53f
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -81,14 +81,14 @@ void FriendListLayout::moveFriendWidgets(FriendListWidget* listWidget)
FriendWidget* friendWidget = qobject_cast<FriendWidget*>(getWidget);
Friend* f = FriendList::findFriend(friendWidget->friendId);
listWidget->moveWidget(friendWidget, f->getStatus(), false);
listWidget->moveWidget(friendWidget, f->getStatus(), true);
}
while (!friendOfflineLayout.getLayout()->isEmpty()) {
QWidget* getWidget = friendOfflineLayout.getLayout()->takeAt(0)->widget();
FriendWidget* friendWidget = qobject_cast<FriendWidget*>(getWidget);
Friend* f = FriendList::findFriend(friendWidget->friendId);
listWidget->moveWidget(friendWidget, f->getStatus(), false);
listWidget->moveWidget(friendWidget, f->getStatus(), true);
}
}