From d2a191aca08b116c9617ed07449a9e8f4078705f Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Mon, 29 Aug 2016 17:01:46 +0000 Subject: [PATCH] Clear the DX grid if the base call of the DX call changes git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7040 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 54a96fb6c..e21670cec 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -3323,6 +3323,11 @@ void MainWindow::processMessage(QString const& messages, int position, bool ctrl auto base_call = Radio::base_callsign (hiscall); if (base_call != Radio::base_callsign (ui->dxCallEntry-> text ()) || base_call != hiscall) { + if (Radio::base_callsign (ui->dxCallEntry->text ()) != base_call) { + // clear the DX grid if the base call of his call is different + // from the current DX call + ui->dxGridEntry->clear (); + } // his base call different or his call more qualified // i.e. compound version of same base call ui->dxCallEntry->setText (hiscall);