mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-24 10:22:26 -04:00
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:
parent
54463bdb11
commit
ef75677e54
@ -2212,6 +2212,10 @@ void MainWindow::genStdMsgs(QString rpt) //genStdMsgs()
|
|||||||
void MainWindow::lookup() //lookup()
|
void MainWindow::lookup() //lookup()
|
||||||
{
|
{
|
||||||
QString hisCall=ui->dxCallEntry->text().toUpper().trimmed();
|
QString hisCall=ui->dxCallEntry->text().toUpper().trimmed();
|
||||||
|
if (hisCall.isEmpty ())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
ui->dxCallEntry->setText(hisCall);
|
ui->dxCallEntry->setText(hisCall);
|
||||||
QFile f {m_dataDir.absoluteFilePath ("CALL3.TXT")};
|
QFile f {m_dataDir.absoluteFilePath ("CALL3.TXT")};
|
||||||
if (f.open (QIODevice::ReadOnly | QIODevice::Text))
|
if (f.open (QIODevice::ReadOnly | QIODevice::Text))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user