Bug 797550 - Crash when changing register tab position

Check for a valid GNC_MAIN_WINDOW being passed to
gnc_main_window_update_tab_position before trying to update tabs
pull/632/head
Robert Fewell 6 years ago
parent 5bfef54d6d
commit c8eb3b3738

@ -3285,6 +3285,8 @@ gnc_main_window_update_tab_position (gpointer prefs, gchar *pref, gpointer user_
GtkPositionType position = GTK_POS_TOP;
GncMainWindowPrivate *priv;
g_return_if_fail (GNC_IS_MAIN_WINDOW(user_data));
window = GNC_MAIN_WINDOW(user_data);
ENTER ("window %p", window);

Loading…
Cancel
Save