From 8a7b64daa37712091df8124e3d2b99aeacd7630c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 22 Oct 2026 08:51:59 +0200 Subject: [PATCH] Adhoc: Start editing the server address from the current one The static string was only initialized on the first call, so the text editor (used where there's no native input dialog) showed whatever was typed the first time, even after picking another server from the list. Co-Authored-By: Claude Opus 5.5 (1M context) --- UI/AdhocServerScreen.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/AdhocServerScreen.cpp b/UI/AdhocServerScreen.cpp index dbbf3761f7..30c7b2368a 100644 --- a/UI/AdhocServerScreen.cpp +++ b/UI/AdhocServerScreen.cpp @@ -867,7 +867,8 @@ void AskToEditCurrentServer(int requestToken, ScreenManager *screenManager) { }); return; } - static std::string editText = g_Config.sProAdhocServer; + static std::string editText; + editText = g_Config.sProAdhocServer; TextEditPopupScreen *popupScreen = new TextEditPopupScreen(&editText, editText, n->T("Ad hoc server address"), 256); if (System_GetPropertyBool(SYSPROP_KEYBOARD_IS_SOFT)) { popupScreen->SetAlignTop(true);