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

Fix friend widget right click crash

This commit is contained in:
Daniel Hrabovcak 2015-06-04 12:41:37 -04:00 committed by tux3
parent e0b9e81938
commit 334bc1ab17

View File

@ -76,7 +76,7 @@ void FriendWidget::contextMenuEvent(QContextMenuEvent * event)
if (groupActions.isEmpty())
inviteMenu->setEnabled(false);
CircleWidget *circleWidget = dynamic_cast<CircleWidget*>(parentWidget());
CircleWidget *circleWidget = CircleWidget::getFromID(Settings::getInstance().getFriendCircleIndex(FriendList::findFriend(friendId)->getToxId()));
QAction* newCircleAction = circleMenu->addAction(tr("To new circle"));
QAction *removeCircleAction;