From 44fd7a4a57c10158eec4546b08f9caaace875e84 Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Wed, 22 Aug 2012 13:22:02 +0000 Subject: [PATCH] Bug #610648 - Change Reconciled Split Dialog ignores pressing Cancel Author: Robert Fewell <14ubobit@gmail.com> BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22340 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome-utils/dialog-utils.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/gnome-utils/dialog-utils.c b/src/gnome-utils/dialog-utils.c index c87d900c9c..e6df76b327 100644 --- a/src/gnome-utils/dialog-utils.c +++ b/src/gnome-utils/dialog-utils.c @@ -602,15 +602,17 @@ gnc_dialog_run (GtkDialog *dialog, const gchar *gconf_key) return GTK_RESPONSE_NO; } - /* Save the answer? */ - if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(perm))) + if (response != GTK_RESPONSE_CANCEL) { - gnc_gconf_set_int(GCONF_WARNINGS_PERM, gconf_key, response, NULL); + /* Save the answer? */ + if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(perm))) + { + gnc_gconf_set_int(GCONF_WARNINGS_PERM, gconf_key, response, NULL); + } + else if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(temp))) + { + gnc_gconf_set_int(GCONF_WARNINGS_TEMP, gconf_key, response, NULL); + } } - else if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(temp))) - { - gnc_gconf_set_int(GCONF_WARNINGS_TEMP, gconf_key, response, NULL); - } - return response; }