[GNC-dev] Import multiple OFX

Geert Janssens geert.gnucash at kobaltwit.be
Sat Apr 18 08:34:30 EDT 2020


Op vrijdag 17 april 2020 18:01:30 CEST schreef jeanl:
> Hi Devs,
> I have code that enables importing multiple OFX in one shot. It's actually
> *almost* already supported by GC, and required few changes.
> - The file import dialog needs a new option to allow multiple-file
> selections
> - Then there's simply a loop over files using the regular code.
> 
> This is great for some people (me) whose banks don't combine ofx files,
> makes the workflow a lot nicer.
> 
> What do you think, should I do a PR for this?
> Jean
> Note: the normal file dialog returns a char* . I added a new type
> IMPORT_MULTIPLE that enables the multiple file selection, but then the
> return must be a GSList*. It's easy (and hacky) to masquerade this GSList*
> as a char*, and this requires no change anywhere else. The alternative is to
> add 1 input parameter GSList** to the file dialog, but this requires
> changes in many files since there are no default parameter values in C.
> 
Feel free to PR it, that will be easier to discuss it than here. Without seeing your code it's hard to 
grasp what exactly you mean.

Regards,

Geert


More information about the gnucash-devel mailing list