From c2f9c5bfb1330b642c1bcc178cea7deedd070c07 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Sun, 22 Nov 2020 10:39:44 +0000 Subject: [PATCH] Bug 106746 - Selecting New account in Loan Assistant Set the modal property on the GNCAccountSel widgets, that way the new account will selected. --- gnucash/gnome/assistant-loan.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnucash/gnome/assistant-loan.cpp b/gnucash/gnome/assistant-loan.cpp index e7df7383ac..ed08172f62 100644 --- a/gnucash/gnome/assistant-loan.cpp +++ b/gnucash/gnome/assistant-loan.cpp @@ -637,6 +637,7 @@ gnc_loan_assistant_create( LoanAssistantData *ldd ) gtk_widget_set_halign (GTK_WIDGET(gas), GTK_ALIGN_FILL); gnc_account_sel_set_hexpand (GNC_ACCOUNT_SEL(gas), true); + gnc_account_sel_set_new_account_modal (GNC_ACCOUNT_SEL(gas), true); g_object_set (GTK_WIDGET(gas), "margin", 2, nullptr); *(gas_data[i].loc) = gas; } @@ -730,6 +731,7 @@ gnc_loan_assistant_create( LoanAssistantData *ldd ) gtk_widget_set_sensitive( GTK_WIDGET(ldd->optEscrowHBox), FALSE ); ldd->optEscrowGAS = GNC_ACCOUNT_SEL(gnc_account_sel_new()); gnc_account_sel_set_hexpand (GNC_ACCOUNT_SEL(ldd->optEscrowGAS), true); + gnc_account_sel_set_new_account_modal (GNC_ACCOUNT_SEL(ldd->optEscrowGAS), true); gnc_account_sel_set_new_account_ability( ldd->optEscrowGAS, TRUE ); gtk_container_add( GTK_CONTAINER(ldd->optEscrowHBox), GTK_WIDGET(ldd->optEscrowGAS) );