Future branch bug

John Ralls jralls at ceridwen.us
Mon Nov 23 20:33:03 EST 2026


Bob,

I’ve seen that too, but I had been ignoring it. Stable also triggers that creation of a session that marks the session dirty but it doesn’t raise the dialog. I’ll do a bisect to see if I can figure out what’s different.

Regards,
John Ralls

> On Nov 23, 2026, at 09:29, Robert Fewell <14ubobit at gmail.com> wrote:
> 
> Hi,
> 
> There is a problem on the future branch that only shows up if you have 'finance quote' installed. It concerns the preference 'Accounts->Default Currency' when set to 'Root Account'.
> 
> If this is set, whenever you start Gnucash you get this prompt 'Save changes to the file?'.
> 
> This is down to gnucash.cpp line 178 which is where checking for 'Finance Quote' is. As part of that 'gnc_default_currency' is processed which calls 'gnc_default_currency_common' and this is where the preference is looked up. If it uses 'Root Account', it is looked up but if not set one is created and doing this sets the 'dirty' flag for the book.
> 
> I can see a couple of possible fixes, the first is to add a function to reset the book dirty flag and call it as the last function of 'gnc_account_create_root'. The thinking behind this is other actions will no doubt set the dirty flag so should be no issue.
> 
> The second is to move the checking for 'Finance Quote' lines 171-191 to a separate function. This function would be called from after the loading of the file, line 201 (g_free(fn)), possibly after the other occurrence of g_free(fn) and after the addition of an 'else' clause.
> 
> Not sure which is the prefered route or possibly there is another option.
> 
> Regards,
> Bob
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel



More information about the gnucash-devel mailing list