From 1f15d0d2ee3e0329653f36487b805cfc8aae7ecd Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Sat, 21 May 2022 07:25:04 +0000 Subject: [PATCH] Bugfix: GUI/Options: Correctly read initial value of spkreuse --- src/qt/optionsmodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp index 7125419485..5df631d283 100644 --- a/src/qt/optionsmodel.cpp +++ b/src/qt/optionsmodel.cpp @@ -331,8 +331,9 @@ bool OptionsModel::Init(bilingual_str& error) addOverriddenOption("-port"); // rwconf settings that require a restart + // Caution: This is before general initialisation occurs! f_peerbloomfilters = gArgs.GetBoolArg("-peerbloomfilters", DEFAULT_PEERBLOOMFILTERS); - f_rejectspkreuse = (SpkReuseMode != SRM_ALLOW); + f_rejectspkreuse = !(gArgs.GetArg("-spkreuse", DEFAULT_SPKREUSE) == "allow" || gArgs.GetBoolArg("-spkreuse", false)); // Display if (settings.contains("FontForMoney")) {