Fix crash when querying data of the already deleted template_list_store of the transfer dialog.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14781 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming
2006-09-01 21:10:53 +00:00
parent 549c08535a
commit 67a081d69e

View File

@@ -101,6 +101,13 @@ gnc_hbci_maketrans (GtkWidget *parent, Account *gnc_acc,
/* Let the user enter the values. If cancel is pressed, -1 is returned. */
result = gnc_hbci_dialog_run_until_ok(td, h_acc);
if ((result != GNC_RESPONSE_NOW) && (result != GNC_RESPONSE_LATER)) {
/* If cancel has been pressed, the dialog doesn't exist
anymore and we cannot query for the template
list. Therefore break immediately. */
break;
}
/* Set the template list in case it got modified. */
if (template_list)
g_list_free(template_list);
@@ -111,10 +118,6 @@ gnc_hbci_maketrans (GtkWidget *parent, Account *gnc_acc,
maketrans_save_templates(parent, gnc_acc, template_list,
(result == GNC_RESPONSE_NOW));
if ((result != GNC_RESPONSE_NOW) && (result != GNC_RESPONSE_LATER)) {
break;
}
/* Make really sure the dialog is hidden now. */
gnc_hbci_dialog_hide(td);