mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* src/engine/QueryCore.c -- make sure we have a string
when running string compares. Partial fix for #99563 * src/gnome/dialog-sx-from-trans.c -- suspend and resume GUI events when building the template trans -- to make sure that refreshes don't happen until after the txn is inserted. FIXES bug #99563 git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7557 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
c701350d06
commit
70b677922f
@ -1,3 +1,12 @@
|
||||
2002-11-25 Derek Atkins <derek@ihtfp.com>
|
||||
|
||||
* src/engine/QueryCore.c -- make sure we have a string
|
||||
when running string compares. Partial fix for #99563
|
||||
* src/gnome/dialog-sx-from-trans.c -- suspend and resume
|
||||
GUI events when building the template trans -- to make sure
|
||||
that refreshes don't happen until after the txn is inserted.
|
||||
FIXES bug #99563
|
||||
|
||||
2002-11-26 Christian Stimming <stimming@tuhh.de>
|
||||
|
||||
* src/import-export/gnc-gen-transaction.[hc]
|
||||
|
@ -125,6 +125,8 @@ static int string_match_predicate (gpointer object, QueryAccess get_fcn,
|
||||
|
||||
s = ((query_string_getter)get_fcn) (object);
|
||||
|
||||
if (!s) s = "";
|
||||
|
||||
if (pdata->is_regex) {
|
||||
regmatch_t match;
|
||||
if (!regexec (&pdata->compiled, s, 1, &match, 0))
|
||||
|
@ -252,8 +252,10 @@ sxftd_add_template_trans(SXFromTransInfo *sxfti)
|
||||
|
||||
tt_list = g_list_append(tt_list, tti);
|
||||
|
||||
gnc_suspend_gui_refresh ();
|
||||
xaccSchedXactionSetTemplateTrans(sxfti->sx, tt_list,
|
||||
gnc_get_current_book ());
|
||||
gnc_resume_gui_refresh ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -1183,6 +1183,8 @@ gnc_xfer_dialog_ok_cb(GtkWidget * widget, gpointer data)
|
||||
xaccAccountCommitEdit(from_account);
|
||||
xaccAccountCommitEdit(to_account);
|
||||
|
||||
/* XXX: Maybe save this exchange to the pricedb */
|
||||
|
||||
/* Refresh everything */
|
||||
gnc_resume_gui_refresh ();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user