From b77e9bd844ec6c9bbd27334a6ac463149183f9e4 Mon Sep 17 00:00:00 2001 From: Robert Chipperfield Date: Tue, 30 Apr 2024 12:45:11 +0100 Subject: [PATCH] Validate QSO before force-logging --- UI/ContestForm.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/ContestForm.cs b/UI/ContestForm.cs index 02245c7..677dd75 100644 --- a/UI/ContestForm.cs +++ b/UI/ContestForm.cs @@ -436,10 +436,11 @@ private void CurrentQSOKeyDown(object sender, KeyEventArgs e) } } } - else if (Control.ModifierKeys == Keys.Control && e.KeyCode == Keys.Oemplus && m_ESMEnabled) + else if (ModifierKeys == Keys.Control && e.KeyCode == Keys.Oemplus && m_ESMEnabled && OnlineStatus && ValidateContact()) { try { + e.SuppressKeyPress = true; m_ContactStore.SaveContact(Contact); m_QarSender.SendQso(Contact); ClearContactRow(true);