gnucash maint: Multiple changes pushed
Robert Fewell
bobit at code.gnucash.org
Tue Jan 25 10:06:13 EST 2022
Updated via https://github.com/Gnucash/gnucash/commit/22a1c354 (commit)
via https://github.com/Gnucash/gnucash/commit/995f5d3f (commit)
from https://github.com/Gnucash/gnucash/commit/2edb87c6 (commit)
commit 22a1c354f77d649f4a30a7806a30eb39764e997a
Author: Robert Fewell <14uBobIT at gmail.com>
Date: Tue Jan 25 15:01:00 2022 +0000
Update the register help label when cell read only
When a register cell is read only, the help label was not being updated
so add a call to redraw_help before returning from
gnc_table_enter_update.
diff --git a/gnucash/register/register-core/table-allgui.c b/gnucash/register/register-core/table-allgui.c
index d55cbf24f..e3fd5038f 100644
--- a/gnucash/register/register-core/table-allgui.c
+++ b/gnucash/register/register-core/table-allgui.c
@@ -1089,6 +1089,8 @@ gnc_table_enter_update (Table *table,
io_flags = gnc_table_get_io_flags (table, virt_loc);
if (io_flags == XACC_CELL_ALLOW_READ_ONLY)
{
+ if (table->gui_handlers.redraw_help)
+ table->gui_handlers.redraw_help (table);
LEAVE("read only cell");
return FALSE;
}
commit 995f5d3ff6eda73bc3b2970d79f937efeff91f60
Author: Robert Fewell <14uBobIT at gmail.com>
Date: Tue Jan 25 14:59:13 2022 +0000
Change AR/AP Type cell to be read only
The Type cell in AR/AP registers should not be changeable from the
register so make the cell read only.
diff --git a/gnucash/register/ledger-core/split-register-load.c b/gnucash/register/ledger-core/split-register-load.c
index 13ae25d2c..0b8b28412 100644
--- a/gnucash/register/ledger-core/split-register-load.c
+++ b/gnucash/register/ledger-core/split-register-load.c
@@ -105,6 +105,7 @@ gnc_split_register_load_type_cells (SplitRegister* reg)
/* FIXME: These should get moved to an i18n function */
gnc_recn_cell_set_valid_flags (cell, "IP?", 'I');
gnc_recn_cell_set_flag_order (cell, "IP");
+ gnc_recn_cell_set_read_only (cell, TRUE);
}
/** Add a transaction to the register.
Summary of changes:
gnucash/register/ledger-core/split-register-load.c | 1 +
gnucash/register/register-core/table-allgui.c | 2 ++
2 files changed, 3 insertions(+)
More information about the gnucash-changes
mailing list