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
This commit is contained in:
Bill Somerville 2015-03-15 13:16:41 +00:00
parent 54463bdb11
commit ef75677e54
1 changed files with 4 additions and 0 deletions

View File

@ -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))