mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-25 18:30:23 -06:00
Bug 798063 - Crash when opening SX Editor
Scheduled transactions place register pages in embedded windows and their priv struct is different so treating one as a main window crashes. Besides, the register in the SX editor would never be read-only. Make sure we have a GncMainWindow at the beginning of main_window_update_page_set_read_only_icon.
This commit is contained in:
parent
60aededafb
commit
6cb58394cd
@ -2456,6 +2456,7 @@ main_window_update_page_set_read_only_icon (GncPluginPage *page,
|
||||
|
||||
ENTER(" ");
|
||||
|
||||
g_return_if_fail(page && page->window && GNC_IS_MAIN_WINDOW(page->window));
|
||||
window = GNC_MAIN_WINDOW(page->window);
|
||||
|
||||
/* Get the notebook tab widget */
|
||||
|
Loading…
Reference in New Issue
Block a user