From c686a86dcc3fd60f854b65c1bcecd3f9c9345ab5 Mon Sep 17 00:00:00 2001 From: ericek111 Date: Thu, 10 Sep 2026 19:30:54 +0000 Subject: [PATCH] Log the contact when Ctrl+Z opens the QTC window, ESM or not Ctrl+Z logged the contact by calling the Enter handler. With ESM switched on, Enter sends the next message of the contact instead of logging it, so the QTC window opened over an unlogged contact and the traffic went into the log in front of the contact it belongs to. It now calls LogContact, which is what N1MM calls at the same point. A station already worked is logged again as a dupe, worth no points, which is what the WAE rules expect: the second contact does not count but the traffic does. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_0157i7PiZyqBkquxS9A6FTdQ --- src/Nonemm.App/Windows/EntryWindow.axaml.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Nonemm.App/Windows/EntryWindow.axaml.cs b/src/Nonemm.App/Windows/EntryWindow.axaml.cs index 7e223a6..999e601 100644 --- a/src/Nonemm.App/Windows/EntryWindow.axaml.cs +++ b/src/Nonemm.App/Windows/EntryWindow.axaml.cs @@ -1131,9 +1131,13 @@ public sealed partial class EntryWindow : Window Status("QTC traffic is a WAE thing"); return; } + // logging it here rather than through Enter: with ESM on, Enter sends + // the next message of the contact instead of logging it, and Ctrl+Z + // means log it and open the window. N1MM calls `LogContact` at the + // same point if (Logging.Entry.Call.Trim().Length > 0 && Logging.Entry.IsComplete) { - OnEnter(); + LogContact(); } string typed = Logging.Entry.Call.Trim(); Callsign station = Callsign.Parse(