From ef75677e543b5a0b231d3bdfb6d055b58f56a5a8 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sun, 15 Mar 2015 13:16:41 +0000 Subject: [PATCH] Don't attempt to lookup empty calls in CALL3.TXT git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5057 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index b5d769e1d..80b4de7c0 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -2212,6 +2212,10 @@ void MainWindow::genStdMsgs(QString rpt) //genStdMsgs() void MainWindow::lookup() //lookup() { QString hisCall=ui->dxCallEntry->text().toUpper().trimmed(); + if (hisCall.isEmpty ()) + { + return; + } ui->dxCallEntry->setText(hisCall); QFile f {m_dataDir.absoluteFilePath ("CALL3.TXT")}; if (f.open (QIODevice::ReadOnly | QIODevice::Text))