From 9b29c8c72212b76df6783656a157dfee16ff6233 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Wed, 23 Jan 2019 20:35:29 -0500 Subject: [PATCH] Added query msgs to the menu --- mainwindow.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index fb9f67e..c3f3d02 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -7401,6 +7401,17 @@ void MainWindow::buildQueryMenu(QMenu * menu, QString call){ addMessageText(QString("%1 QUERY CALL [CALLSIGN]?").arg(selectedCall), true, true); }); + auto qsoQueryMsgAction = menu->addAction(QString("%1 QUERY MSGS - Please deliver any messages you have for me").arg(call).trimmed()); + connect(qsoQueryMsgAction, &QAction::triggered, this, [this](){ + + QString selectedCall = callsignSelected(); + if(selectedCall.isEmpty()){ + return; + } + + addMessageText(QString("%1 QUERY MSGS").arg(selectedCall), true, true); + }); + auto agnAction = menu->addAction(QString("%1 AGN? - Please automatically repeat your last transmission").arg(call).trimmed()); connect(agnAction, &QAction::triggered, this, [this](){