Hi there, This is a simple patch to fix that bug...
The sensitivity of the close button is handled by gnc_main_window_switch_page(), which makes it insensitive when the page is immutable. However, that function is obviously not called when you hit 'File -> New File' and cancel it, so the close button sensitivity doesn't get updated. One way to fix this is to move the code responsible for updating the close button sensitiveness to gnc_main_window_generate_title, where the sensitivity of the save button is handled. Having that as a side-effect of an unrelated function is certainly not the most elegant solution, but since the sensitivity of the save button is already handled there, I thought I'd give it a try and see what others think.
0001-Move-the-code-that-updates-the-sensitivity-of-immuta.patch
Description: Binary data
_______________________________________________ gnucash-devel mailing list [email protected] https://lists.gnucash.org/mailman/listinfo/gnucash-devel
