Deactivate Lookup for certain special operating activities, as 6-digit grids from CALL3.TXT may not be accepted.

This commit is contained in:
Uwe Risse 2024-01-24 18:02:06 +01:00
parent aac9de3e4c
commit 90b7ff7da9

View File

@ -6383,7 +6383,7 @@ void MainWindow::lookup()
{
QString hisCall {ui->dxCallEntry->text()};
QString hisgrid0 {ui->dxGridEntry->text()};
if (!hisCall.size ()) return;
if (!hisCall.size () or (!(m_specOp==SpecOp::NONE or m_specOp==SpecOp::HOUND or m_specOp==SpecOp::Q65_PILEUP))) return;
QFile f {m_config.writeable_data_dir ().absoluteFilePath ("CALL3.TXT")};
if (f.open (QIODevice::ReadOnly | QIODevice::Text))
{