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
This commit is contained in:
Geert Janssens 2012-08-22 13:22:02 +00:00
parent a95de8a2ed
commit 44fd7a4a57

View File

@ -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;
}