From 9fd64f48de3a2185416d3a7323139ae6fab1fd17 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Thu, 20 Dec 2018 12:03:22 -0500 Subject: [PATCH] Allow the logQSO dialog to modify "Exch Sent" or "Rcvd" in RTTY mode and have the changes flow through to N1MM. Something similar should be done for other contest modes. --- widgets/logqso.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/widgets/logqso.cpp b/widgets/logqso.cpp index 4c9f9ffc4..bfea97620 100644 --- a/widgets/logqso.cpp +++ b/widgets/logqso.cpp @@ -135,9 +135,15 @@ void LogQSO::accept() auto xsent = ui->exchSent->text (); auto xrcvd = ui->exchRcvd->text (); - // validate using SpOp = Configuration::SpecialOperatingActivity; auto special_op = m_config->special_op_id (); + + if (special_op == SpOp::RTTY) { + if(rptSent=="" or !xsent.contains(rptSent+" ")) rptSent=xsent.split(" ",QString::SkipEmptyParts).at(0); + if(rptRcvd=="" or !xrcvd.contains(rptRcvd+" ")) rptRcvd=xrcvd.split(" ",QString::SkipEmptyParts).at(0); + } + + // validate if (SpOp::NONE < special_op && special_op < SpOp::FOX) { if (xsent.isEmpty () || xrcvd.isEmpty ())