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

Commit

Permalink
fix: Fix freez on circle removing
Browse files Browse the repository at this point in the history
Fix #4419
  • Loading branch information
Diadlo committed Jun 2, 2017
1 parent dd60edb commit 4d15aed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widget/friendlistlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 4d15aed

Please sign in to comment.