mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48: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:
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…
Reference in New Issue
Block a user