From 62b8b6531e363688ee8971903037035e57b4614a Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sat, 14 Apr 2018 23:05:33 +0000 Subject: [PATCH] Don't allow n3 > Nslots. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8617 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 94362a94e..fe784a632 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -7550,7 +7550,6 @@ void MainWindow::foxTxSequencer() foxGenWaveform(islot-1,fm); goto Transmit; } - //Compile list1: for(QString hc: m_foxQSO.keys()) { //Check all Hound calls: First priority if(m_foxQSO[hc].tFoxRrpt<0) continue; @@ -7626,6 +7625,7 @@ list2Done: n1=list1.size(); n2=list2.size(); n3=qMax(n1,n2); + if(n3>m_Nslots) n3=m_Nslots; for(int i=0; iisVisible()) { - m_msgAvgWidget->foxAddLog(logLine); - } - on_logQSOButton_clicked(); - writeFoxQSO(" Log: " + logLine.mid(17)); - m_foxRateQueue.enqueue(now); //Add present time in seconds to Rate queue. - m_loggedByFox[hc1] += (m_lastBand + " "); + m_hisCall=hc1; + m_hisGrid=m_foxQSO[hc1].grid; + m_rptSent=m_foxQSO[hc1].sent; + m_rptRcvd=m_foxQSO[hc1].rcvd; + QDateTime logTime {QDateTime::currentDateTimeUtc ()}; + QString logLine=logTime.toString("yyyy-MM-dd hh:mm") + " " + (m_hisCall + " ").mid(0,6) + + " " + m_hisGrid + " " + m_rptSent + " " + m_rptRcvd + " " + m_lastBand; + if(m_msgAvgWidget != NULL and m_msgAvgWidget->isVisible()) { + m_msgAvgWidget->foxAddLog(logLine); + } + on_logQSOButton_clicked(); + writeFoxQSO(" Log: " + logLine.mid(17)); + m_foxRateQueue.enqueue(now); //Add present time in seconds to Rate queue. + m_loggedByFox[hc1] += (m_lastBand + " "); } if(icomboBoxCQ->currentText() + " " + m_config.my_callsign(); if(!fm.contains("/")) {