From bbe3cf9805da40cc2c73bdcebe9519bddf483622 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sun, 22 Jan 2017 20:38:10 +0000 Subject: [PATCH] When logging, enforce QSO stop time >= start time. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7552 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 78ca367c8..0b75ba90f 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -4115,6 +4115,7 @@ void MainWindow::on_logQSOButton_clicked() //Log QSO button if (m_dateTimeQSOOn==m_dateTimeDefault) m_dateTimeQSOOn=QDateTime::currentDateTimeUtc(); m_dateTimeQSOOff = QDateTime::currentDateTimeUtc(); + if(m_dateTimeQSOOff < m_dateTimeQSOOn) m_dateTimeQSOOff=m_dateTimeQSOOn; m_logDlg->initLogQSO (m_hisCall, m_hisGrid, m_modeTx, m_rptSent, m_rptRcvd, m_dateTimeQSOOn, m_dateTimeQSOOff, m_freqNominal + ui->TxFreqSpinBox->value(), m_config.my_callsign(), m_config.my_grid(), m_noSuffix,