From 63502900f3dc9992a38bbd140a3e1a4830aa32cd Mon Sep 17 00:00:00 2001 From: John Ralls Date: Fri, 5 Mar 2021 16:15:12 -0800 Subject: [PATCH] Permit GncOptionAccountValue to have a nil default value. --- libgnucash/app-utils/gnc-option-impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgnucash/app-utils/gnc-option-impl.cpp b/libgnucash/app-utils/gnc-option-impl.cpp index 16310597fa..961769de7b 100644 --- a/libgnucash/app-utils/gnc-option-impl.cpp +++ b/libgnucash/app-utils/gnc-option-impl.cpp @@ -40,7 +40,7 @@ bool GncOptionAccountValue::validate(const GncOptionAccountList& values) const { if (values.empty()) - return false; + return true; if ((get_ui_type() == GncOptionUIType::ACCOUNT_SEL || !m_multiselect) && values.size() != 1) return false;