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.
This commit is contained in:
Geert Janssens 2018-05-12 16:50:02 +02:00
parent 61fe647828
commit 324c9adfd2

View File

@ -2156,7 +2156,7 @@ recnFinishCB (GtkAction *action, RecnWindow *recnData)
Account *payment_account; Account *payment_account;
XferDialog *xfer; 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)); gnc_xfer_dialog_set_amount(xfer, gnc_numeric_neg (recnData->new_ending));