* src/gnome-utils/dialog-transfer.c: call the to_amount_update_cb

handler during certain paths of the ok_cb because the focus-out
	  signal may not get handled in all cases -- so force the issue.
	  Fixes bug #102163


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7746 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2003-01-02 00:22:40 +00:00
parent 7be855053c
commit f158234c94
2 changed files with 12 additions and 0 deletions

View File

@ -4,6 +4,11 @@
exchange rate when we're swapping currencies, since the logic
of the transfer dialog was reversed. Fixes bug #102157
* src/gnome-utils/dialog-transfer.c: call the to_amount_update_cb
handler during certain paths of the ok_cb because the focus-out
signal may not get handled in all cases -- so force the issue.
Fixes bug #102163
2002-12-30 Benoit Grégoire <bock@step.polymtl.ca>
* src/import-export/hbci/druid-hbci-initial.c
* src/import-export/hbci/gnc-hbci-utils.c:

View File

@ -1398,6 +1398,13 @@ gnc_xfer_dialog_ok_cb(GtkWidget * widget, gpointer data)
if (xferData->exch_rate)
{
/* If the to_amount is active, then call the callback, just in case the
* user hit "return" -- because the exit-focus signal handler was probably
* not executed.
*/
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (xferData->amount_radio)))
gnc_xfer_to_amount_update_cb(xferData->to_amount_edit, NULL, xferData);
*(xferData->exch_rate) =
gnc_amount_edit_get_amount(GNC_AMOUNT_EDIT(xferData->price_edit));
}