From c647c699f918b9013caab899777a7246f07df537 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Wed, 12 Jul 2023 14:49:08 -0400 Subject: [PATCH] 2023-07-12 Fred Gleason * Fixed a bug in rdlibrary(1) that could cause the 'Add Cart' dialog to display the incorrect type for the selected group. Signed-off-by: Fred Gleason --- ChangeLog | 3 +++ lib/rdadd_cart.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index 50279943..2c3ae1c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24294,3 +24294,6 @@ that caused rendered log to include the cart immediately after the end of the selected section when setting the 'Include' dropdown to 'Only Selected Events'. +2023-07-12 Fred Gleason + * Fixed a bug in rdlibrary(1) that could cause the 'Add Cart' dialog + to display the incorrect type for the selected group. diff --git a/lib/rdadd_cart.cpp b/lib/rdadd_cart.cpp index 3c03d348..87721ea1 100644 --- a/lib/rdadd_cart.cpp +++ b/lib/rdadd_cart.cpp @@ -171,6 +171,7 @@ void RDAddCart::groupActivatedData(const QString &groupname) } else { cart_number_edit->setText(QString::asprintf("%06u",cartnum)); + cart_type_box->setCurrentIndex((int)group->defaultCartType()-1); } delete group; }