From e3e93a43bfd6634b29801321a7dd2b4fff8f6f47 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sat, 8 Mar 2025 10:55:47 -0600 Subject: [PATCH] new save file field save state when page changes --- src/game/boe.dlgutil.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/boe.dlgutil.cpp b/src/game/boe.dlgutil.cpp index 0ab05e44..16607f7e 100644 --- a/src/game/boe.dlgutil.cpp +++ b/src/game/boe.dlgutil.cpp @@ -2081,9 +2081,11 @@ class cFilePicker { bool changeSelectedPage(int dir) { auto& stk = dynamic_cast(me["list"]); + cControl::storage_t field_storage = me["file1-field"].store(); // This stack doesn't loop. It's easier to implement loading the files one page at a time // if I know we're not gonna jump from page 0 to the last page, leaving a gap in the vector. stk.changeSelectedPage(dir); + me["file1-field"].restore(field_storage); me["prev"].show(); me["next"].show(); if(stk.getPage() == 0){