Skip to content

Commit

Permalink
Bug #610648 - Change Reconciled Split Dialog ignores pressing Cancel
Browse files Browse the repository at this point in the history
Author: Robert Fewell <14ubobit@gmail.com>
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22340 57a11ea4-9604-0410-9ed3-97b8803252fd
  • Loading branch information
gjanssens committed Aug 22, 2012
1 parent a95de8a commit 44fd7a4
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/gnome-utils/dialog-utils.c
Expand Up @@ -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);
}
else if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(temp)))
{
gnc_gconf_set_int(GCONF_WARNINGS_TEMP, 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);
}
}

return response;
}

0 comments on commit 44fd7a4

Please sign in to comment.