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

Remove 'Open Chat' menu action

Apparently, nobody uses it
This commit is contained in:
tux3 2015-09-14 19:30:38 +02:00
parent 346c2c64db
commit cf5fb0397a
2 changed files with 0 additions and 12 deletions

View File

@ -68,7 +68,6 @@ void FriendWidget::contextMenuEvent(QContextMenuEvent * event)
ToxId id = FriendList::findFriend(friendId)->getToxId(); ToxId id = FriendList::findFriend(friendId)->getToxId();
QString dir = Settings::getInstance().getAutoAcceptDir(id); QString dir = Settings::getInstance().getAutoAcceptDir(id);
QMenu menu; QMenu menu;
QAction* openChat = menu.addAction(tr("Open chat"));
QAction* openChatWindow = nullptr; QAction* openChatWindow = nullptr;
QAction* removeChatWindow = nullptr; QAction* removeChatWindow = nullptr;
@ -174,11 +173,6 @@ void FriendWidget::contextMenuEvent(QContextMenuEvent * event)
emit removeFriend(friendId); emit removeFriend(friendId);
return; return;
} }
else if (selectedItem == openChat)
{
emit chatroomWidgetClicked(this);
return;
}
else if (selectedItem == openChatWindow) else if (selectedItem == openChatWindow)
{ {
emit chatroomWidgetClicked(this, true); emit chatroomWidgetClicked(this, true);

View File

@ -67,7 +67,6 @@ void GroupWidget::contextMenuEvent(QContextMenuEvent* event)
QMenu menu(this); QMenu menu(this);
QAction* openChat = menu.addAction(tr("Open chat"));
QAction* openChatWindow = nullptr; QAction* openChatWindow = nullptr;
QAction* removeChatWindow = nullptr; QAction* removeChatWindow = nullptr;
@ -98,11 +97,6 @@ void GroupWidget::contextMenuEvent(QContextMenuEvent* event)
{ {
emit removeGroup(groupId); emit removeGroup(groupId);
} }
else if (selectedItem == openChat)
{
emit chatroomWidgetClicked(this);
return;
}
else if (selectedItem == openChatWindow) else if (selectedItem == openChatWindow)
{ {
emit chatroomWidgetClicked(this, true); emit chatroomWidgetClicked(this, true);