mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user