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:
parent
346c2c64db
commit
cf5fb0397a
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user