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:
parent
e0b9e81938
commit
334bc1ab17
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user