diff --git a/src/widget/friendwidget.cpp b/src/widget/friendwidget.cpp index 9459b3ece..ed9433ee8 100644 --- a/src/widget/friendwidget.cpp +++ b/src/widget/friendwidget.cpp @@ -68,7 +68,6 @@ void FriendWidget::contextMenuEvent(QContextMenuEvent * event) ToxId id = FriendList::findFriend(friendId)->getToxId(); QString dir = Settings::getInstance().getAutoAcceptDir(id); QMenu menu; - QAction* openChat = menu.addAction(tr("Open chat")); QAction* openChatWindow = nullptr; QAction* removeChatWindow = nullptr; @@ -174,11 +173,6 @@ void FriendWidget::contextMenuEvent(QContextMenuEvent * event) emit removeFriend(friendId); return; } - else if (selectedItem == openChat) - { - emit chatroomWidgetClicked(this); - return; - } else if (selectedItem == openChatWindow) { emit chatroomWidgetClicked(this, true); diff --git a/src/widget/groupwidget.cpp b/src/widget/groupwidget.cpp index 7957340a1..b7993b5a1 100644 --- a/src/widget/groupwidget.cpp +++ b/src/widget/groupwidget.cpp @@ -67,7 +67,6 @@ void GroupWidget::contextMenuEvent(QContextMenuEvent* event) QMenu menu(this); - QAction* openChat = menu.addAction(tr("Open chat")); QAction* openChatWindow = nullptr; QAction* removeChatWindow = nullptr; @@ -98,11 +97,6 @@ void GroupWidget::contextMenuEvent(QContextMenuEvent* event) { emit removeGroup(groupId); } - else if (selectedItem == openChat) - { - emit chatroomWidgetClicked(this); - return; - } else if (selectedItem == openChatWindow) { emit chatroomWidgetClicked(this, true);