If Trading accounts is enabled, and the transaction is a transfer
between two accounts of differing commodities, the CSV simple-layout
export would incorrectly show "--Split Transaction--" as the
category.
This commit changes the algorithm to ignore the trading splits when
determining the other split account, thereby returning a more useful
other account name.
quotes since 5.0.
The filename is getting stuffed into the m_quotes_cmd vector unless --namespace
is specified, so check if that's happened and copy the value over.
Why this compiled is a mystery. Since empty wasn't captured it should
have raised an unused variable for the outside the lambda declaration
and an undeclared variable for the use inside. Only gcc 7 raised the
first error and nothing noticed the second.
This fixes memory leaks that are only present in testing code.
Not very useful on itself, but it does make it easier to fix memory
leaks and other AddressSanitizer problems in actual gnucash code later.
These were not used outside a test.
And that test was not leak free, as a result of the functions not doing
what they are supposed to do when the current value is not of the type
that is expected. (NULL is returned, but the value is not replaced)
Menu items based on actions with targets all share the same action so
add the target to the end of lines defining these menu item so that
accelerators can be added.
Need to readd the accelerator keys when some register transaction
actions are renamed to split actions as this is done by removing and
adding a new menu model / item. As the register is also used for the
schedule transaction editor the way the accelerator group is retrieved
needs changing.
'reversed' each time you restart.
Lists read from the front, vectors to the back, so reverse the
vector after loading it.
While we're at it reserve enough elements to hold the list.
The initialization API was updated in 3.8.
"This API is kept for backward compatibility:
setting PyConfig.argv and PyConfig.parse_argv should be used instead,
see Python Initialization Configuration."
Addendum to bug 355498 to select the result. This allows faster
keyboard navigation -- Find Customer, input search string, press
ENTER, use up/down to select desired object, press ENTER to open
object.