if trans-type is none, print a ? (default) and have due-date off.

Flip between I and P (on and off) as user enters Type cell.

Eventually the 'default' should be a user preference, IMHO.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6148 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2001-11-30 04:55:03 +00:00
parent 8b55858163
commit e44cfabcd0
2 changed files with 2 additions and 3 deletions

View File

@ -72,7 +72,7 @@ gnc_split_register_load_type_cells (SplitRegister *reg)
if (!cell) return;
/* FIXME: These should get moved to an i18n function */
gnc_recn_cell_set_valid_flags (cell, "IP", 'P');
gnc_recn_cell_set_valid_flags (cell, "IP?", 'I');
gnc_recn_cell_set_flag_order (cell, "IP");
}

View File

@ -643,8 +643,7 @@ gnc_split_register_get_type_entry (VirtualLocation virt_loc,
type = xaccTransGetTxnType (trans);
if (type == TXN_TYPE_NONE)
/* Change the default? */
(type);
type = '?';
s[0] = type;
s[1] = '\0';