mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
don't set description field directly
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@379 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -677,8 +677,7 @@ createCB( Widget mw, XtPointer cd, XtPointer cb )
|
||||
initTransaction(trans);
|
||||
|
||||
todaysDate( &(trans->date) );
|
||||
XtFree (trans->description);
|
||||
trans->description = XtNewString(OPEN_BALN_STR);
|
||||
xaccTransSetDescription (trans, OPEN_BALN_STR);
|
||||
|
||||
/* add the new transaction to the account */
|
||||
insertTransaction( acc, trans );
|
||||
|
||||
@@ -305,8 +305,7 @@ adjBOkCB( Widget mw, XtPointer cd, XtPointer cb )
|
||||
themount = val;
|
||||
|
||||
/* fill out the rest of the fields */
|
||||
XtFree (trans->description);
|
||||
trans->description = XtNewString(ADJ_BALN_STR);
|
||||
xaccTransSetDescription (trans, ADJ_BALN_STR);
|
||||
xaccTransSetReconcile (trans, NREC);
|
||||
|
||||
pos = insertTransaction( acc, trans );
|
||||
|
||||
Reference in New Issue
Block a user