changeset 915:a0c8eed60e06

IN 45: Fixed allowing selecting the bank account type when posting a budget item.
author John Schneiderman <JohnMS@member.fsf.org>
date Thu, 03 Nov 2022 18:22:48 +0100
parents 4bc7f4064c92
children f62ef19b8028
files ChangeLog src/desktop-ui/internal/PostBudgetItemEntryWidget.cpp
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Nov 03 18:12:20 2022 +0100
+++ b/ChangeLog	Thu Nov 03 18:22:48 2022 +0100
@@ -18,6 +18,7 @@
 #**  along with this program. If not, see <http://www.gnu.org/licenses/>.    ***
 #*******************************************************************************
 XXXX-XX-XX John Schneiderman <JohnMS_AT_member_DOT_fsf_DOT_org> 0.5.0
+	* Bug Fix #45: Fixed allowing selecting the bank account type when posting a budget item.
 	* Bug Fix #46: Fixed the budget item source not adjusting its width when posting a budget item.
 	* Feature #32: Adds the ability to store bank reconciliation information.
 	* Development #28: All Qt memory is validated at runtime in the debug build.
--- a/src/desktop-ui/internal/PostBudgetItemEntryWidget.cpp	Thu Nov 03 18:12:20 2022 +0100
+++ b/src/desktop-ui/internal/PostBudgetItemEntryWidget.cpp	Thu Nov 03 18:22:48 2022 +0100
@@ -183,12 +183,12 @@
 		this->typeCmbbx->setCurrentText(presentationText(item->id_.type_));
 		this->amountMnyntrydgt->setMoney(item->amount_);
 		this->updateSourceDescription(item->id_.type_);
-		this->sourceCmbbx->disableSupportedAccountTypes();
 	}
 	this->postLbl->hide();
 	this->postOnDtdt->setDate(QDate::currentDate());
 	this->errorMessageLbl->hide();
 	this->sourceCmbbx->setBanks(banks);
+	this->sourceCmbbx->disableSupportedAccountTypes();
 
 	//{ Connect the amountMnyntrydgt