r15959 - gnucash/trunk/src/gnome-utils - Disable the close callback while updating reports. Fixes #416986.
David Hampton
hampton at cvs.gnucash.org
Sat Apr 21 15:18:29 EDT 2007
Author: hampton
Date: 2007-04-21 15:18:16 -0400 (Sat, 21 Apr 2007)
New Revision: 15959
Trac: http://svn.gnucash.org/trac/changeset/15959
Modified:
gnucash/trunk/src/gnome-utils/dialog-options.c
Log:
Disable the close callback while updating reports. Fixes #416986.
Modified: gnucash/trunk/src/gnome-utils/dialog-options.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-options.c 2007-04-21 19:18:05 UTC (rev 15958)
+++ gnucash/trunk/src/gnome-utils/dialog-options.c 2007-04-21 19:18:16 UTC (rev 15959)
@@ -1300,6 +1300,8 @@
void
gnc_options_dialog_response_cb(GtkDialog *dialog, gint response, GNCOptionWin *window)
{
+ GNCOptionWinCallback close_cb;
+
switch (response) {
case GTK_RESPONSE_HELP:
if(window->help_cb)
@@ -1309,8 +1311,11 @@
case GTK_RESPONSE_OK:
case GTK_RESPONSE_APPLY:
gnc_options_dialog_changed_internal (window->dialog, FALSE);
+ close_cb = window->close_cb;
+ window->close_cb = NULL;
if (window->apply_cb)
window->apply_cb (window, window->apply_cb_data);
+ window->close_cb = close_cb;
if (response == GTK_RESPONSE_APPLY)
break;
/* fall through */
More information about the gnucash-changes
mailing list