From 324c9adfd2dbee64ceffe0036d7e6a61d2b45c25 Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Sat, 12 May 2018 16:50:02 +0200 Subject: [PATCH] Bug 795519 - Credit card payment after reconciliation The transfer dialog was set up as a child of the reconciliation dialog. However as the latter is closed it's child dialogs are closed as well. At least that's the behaviour on Windows. This didn't happen on Fedora 27. Regardless it's fixed by making the account register the parent of the transfer dialog. --- gnucash/gnome/window-reconcile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnucash/gnome/window-reconcile.c b/gnucash/gnome/window-reconcile.c index 9ed3dd8e62..3836bfdf80 100644 --- a/gnucash/gnome/window-reconcile.c +++ b/gnucash/gnome/window-reconcile.c @@ -2156,7 +2156,7 @@ recnFinishCB (GtkAction *action, RecnWindow *recnData) Account *payment_account; XferDialog *xfer; - xfer = gnc_xfer_dialog (GTK_WIDGET (recnData->window), account); + xfer = gnc_xfer_dialog (GTK_WIDGET (gnc_ui_get_main_window (recnData->window)), account); gnc_xfer_dialog_set_amount(xfer, gnc_numeric_neg (recnData->new_ending));