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:
John Ralls 2020-12-28 12:08:57 -08:00
parent 60aededafb
commit 6cb58394cd

View File

@ -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 */