Move retrieval of private data of main window after the creation of the window.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13574 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler 2006-03-09 22:58:36 +00:00
parent d331aa8f18
commit c8544e6a57
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-03-09 Andreas Köhler <andi5.py@gmx.net>
* src/gnome-utils/gnc-main-window.c: Move retrieval of private
data of main window after the creation of the window.
2006-03-09 David Hampton <hampton@employees.org>
* src/gnome-utils/gnc-tree-model-commodity.c:

View File

@ -513,7 +513,6 @@ gnc_main_window_restore_window (GncMainWindow *window, GncMainWindowSaveData *da
/* Setup */
ENTER("window %p, data %p (key file %p, window %d)",
window, data, data->key_file, data->window_num);
priv = GNC_MAIN_WINDOW_GET_PRIVATE(window);
window_group = g_strdup_printf(WINDOW_STRING, data->window_num + 1);
/* Get this window's notebook info */
@ -546,6 +545,8 @@ gnc_main_window_restore_window (GncMainWindow *window, GncMainWindowSaveData *da
window = gnc_main_window_new();
}
priv = GNC_MAIN_WINDOW_GET_PRIVATE(window);
/* Get the window coordinates, etc. */
pos = g_key_file_get_integer_list(data->key_file, window_group,
WINDOW_POSITION, &length, &error);