mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user