[Gnucash-changes] Protect gnc_save_window_size() against being called after window

David Hampton hampton at cvs.gnucash.org
Sun May 22 20:16:14 EDT 2005


Log Message:
-----------
Protect gnc_save_window_size() against being called after
window destruction has started.

Tags:
----
gnucash-gnome2-dev

Modified Files:
--------------
    gnucash/src/gnome-utils:
        dialog-utils.c

Revision Data
-------------
Index: dialog-utils.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome-utils/dialog-utils.c,v
retrieving revision 1.13.4.13
retrieving revision 1.13.4.14
diff -Lsrc/gnome-utils/dialog-utils.c -Lsrc/gnome-utils/dialog-utils.c -u -r1.13.4.13 -r1.13.4.14
--- src/gnome-utils/dialog-utils.c
+++ src/gnome-utils/dialog-utils.c
@@ -313,6 +313,9 @@
   g_return_if_fail(section != NULL);
   g_return_if_fail(window != NULL);
 
+  if (GTK_OBJECT_FLAGS(window) & GTK_IN_DESTRUCTION)
+    return;
+
   if (!gnc_lookup_boolean_option("_+Advanced", "Save Window Geometry", FALSE))
     return;
 


More information about the gnucash-changes mailing list