From 13f5d3f73fe480c52341cc4f9b38efec4c672678 Mon Sep 17 00:00:00 2001 From: TotalCaesar659 <14265316+TotalCaesar659@users.noreply.github.com> Date: Wed, 15 Apr 2020 18:16:14 +0300 Subject: [PATCH] Add "Enable chat" menu point to Linux version --- Qt/mainwindow.cpp | 2 ++ Qt/mainwindow.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Qt/mainwindow.cpp b/Qt/mainwindow.cpp index 33c814a89b..31f72c2a63 100644 --- a/Qt/mainwindow.cpp +++ b/Qt/mainwindow.cpp @@ -657,6 +657,8 @@ void MainWindow::createMenus() gameSettingsMenu->addSeparator(); gameSettingsMenu->add(new MenuAction(this, SLOT(cheatsAct()), QT_TR_NOOP("Enable &cheats"), Qt::CTRL + Qt::Key_T)) ->addEventChecked(&g_Config.bEnableCheats); + gameSettingsMenu->addSeparator(); + gameSettingsMenu->add(new MenuAction(this, SLOT(chatAct()), QT_TR_NOOP("Enable chat"), Qt::CTRL + Qt::Key_C)); // Help MenuTree* helpMenu = new MenuTree(this, menuBar(), QT_TR_NOOP("&Help")); diff --git a/Qt/mainwindow.h b/Qt/mainwindow.h index 60f6ea57e7..2da0f8e37a 100644 --- a/Qt/mainwindow.h +++ b/Qt/mainwindow.h @@ -173,6 +173,9 @@ private slots: // Cheats void cheatsAct() { g_Config.bEnableCheats = !g_Config.bEnableCheats; } + // Chat + void chatAct() { NativeMessageReceived("chat screen", ""); } + void fullscrAct(); void raiseTopMost(); void statsAct() {