From a3fdcf71481e3acfe35fa363d0c2d3037774c2de Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Mon, 22 Jan 2018 19:45:51 +0000 Subject: [PATCH] Issue warning if Log QSO is requested with DX Call field empty. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8430 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index d9b9e9d04..bed4f8ad1 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -4787,7 +4787,9 @@ void MainWindow::on_genStdMsgsPushButton_clicked() //genStdMsgs button void MainWindow::on_logQSOButton_clicked() //Log QSO button { - if (!m_hisCall.size ()) return; + if (!m_hisCall.size ()) { + MessageBox::warning_message (this, tr ("Warning: DX Call field is empty.")); + } // m_dateTimeQSOOn should really already be set but we'll ensure it gets set to something just in case if (!m_dateTimeQSOOn.isValid ()) { m_dateTimeQSOOn = QDateTime::currentDateTimeUtc();