mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 724745 - Added new transaction during reconcile, didn't...
show up in reconcile window. Watch all of the splits in the accounts to get signals.
This commit is contained in:
@@ -1621,29 +1621,15 @@ recn_set_watches_one_account (gpointer data, gpointer user_data)
|
|||||||
xaccAccountGetGUID (account),
|
xaccAccountGetGUID (account),
|
||||||
QOF_EVENT_MODIFY | QOF_EVENT_DESTROY);
|
QOF_EVENT_MODIFY | QOF_EVENT_DESTROY);
|
||||||
|
|
||||||
/* add a watch on each unreconciled or cleared split for the account */
|
/* add a watch on each split for the account */
|
||||||
for (auto split : xaccAccountGetSplits (account))
|
for (auto split : xaccAccountGetSplits (account))
|
||||||
{
|
{
|
||||||
Transaction *trans;
|
auto trans = xaccSplitGetParent (split);
|
||||||
char recn;
|
gnc_gui_component_watch_entity (recnData->component_id,
|
||||||
|
xaccTransGetGUID (trans),
|
||||||
recn = xaccSplitGetReconcile (split);
|
QOF_EVENT_MODIFY
|
||||||
switch (recn)
|
| QOF_EVENT_DESTROY
|
||||||
{
|
| GNC_EVENT_ITEM_CHANGED);
|
||||||
case NREC:
|
|
||||||
case CREC:
|
|
||||||
trans = xaccSplitGetParent (split);
|
|
||||||
|
|
||||||
gnc_gui_component_watch_entity (recnData->component_id,
|
|
||||||
xaccTransGetGUID (trans),
|
|
||||||
QOF_EVENT_MODIFY
|
|
||||||
| QOF_EVENT_DESTROY
|
|
||||||
| GNC_EVENT_ITEM_CHANGED);
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user