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.
This commit is contained in:
Joe Taylor 2018-12-20 12:03:22 -05:00
parent 6374ee9557
commit 9fd64f48de
1 changed files with 7 additions and 1 deletions

View File

@ -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 ())