From ca7bbe2bcd610872bf4ddf5ae19812f53731e81d Mon Sep 17 00:00:00 2001 From: "Rob Swindell (on Windows 11)" <rob@synchro.net> Date: Sun, 5 Jan 2025 20:50:14 -0800 Subject: [PATCH] Must set current_file before calling xfer_prot_menu() to get download.* Amendment to commit 03aaeb787d3f --- src/sbbs3/listfile.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sbbs3/listfile.cpp b/src/sbbs3/listfile.cpp index 8e679a4ba1..32bc8c48ca 100644 --- a/src/sbbs3/listfile.cpp +++ b/src/sbbs3/listfile.cpp @@ -1016,7 +1016,9 @@ int sbbs_t::listfileinfo(const int dirnum, const char *filespec, const int mode) } continue; } + current_file = f; xfer_prot_menu(XFER_DOWNLOAD, &useron, keys, sizeof keys); + current_file = nullptr; sync(); mnemonics(text[ProtocolBatchQuitOrNext]); SAFECAT(keys, "BN\r"); -- GitLab