From 0c99e7482c22c8dbb6cceffe2a36b948b130d679 Mon Sep 17 00:00:00 2001 From: Ivan Date: Tue, 24 Sep 2024 22:40:15 +0400 Subject: [PATCH] fix #2396: NetRocks: Extra connection options, load KeepAlive correctly --- NetRocks/src/UI/Settings/ExtraSiteSettings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NetRocks/src/UI/Settings/ExtraSiteSettings.cpp b/NetRocks/src/UI/Settings/ExtraSiteSettings.cpp index 75e5aaa91..a01945ff1 100644 --- a/NetRocks/src/UI/Settings/ExtraSiteSettings.cpp +++ b/NetRocks/src/UI/Settings/ExtraSiteSettings.cpp @@ -100,7 +100,7 @@ class ExtraSiteSettings : protected BaseDialog _di.SetLine(2); _di.AddAtLine(DI_TEXT, 5,56, 0, MKeepAlive); - itoa(std::min(0, sc.GetInt("KeepAlive", 0)), sz, 10); + itoa(sc.GetInt("KeepAlive", 0), sz, 10); _i_keepalive = _di.AddAtLine(DI_FIXEDIT, 57,62, DIF_MASKEDIT, sz, "999999"); _di.NextLine();