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
This commit is contained in:
Joe Taylor 2018-01-22 19:45:51 +00:00
parent 04e4c058d6
commit a3fdcf7148

View File

@ -4787,7 +4787,9 @@ void MainWindow::on_genStdMsgsPushButton_clicked() //genStdMsgs button
void MainWindow::on_logQSOButton_clicked() //Log QSO 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 // m_dateTimeQSOOn should really already be set but we'll ensure it gets set to something just in case
if (!m_dateTimeQSOOn.isValid ()) { if (!m_dateTimeQSOOn.isValid ()) {
m_dateTimeQSOOn = QDateTime::currentDateTimeUtc(); m_dateTimeQSOOn = QDateTime::currentDateTimeUtc();