r15195 - gnucash/branches/gda-dev/src/gnome - Add begin_edit()/commit_edit() around lines filling in new sx

Phil Longstaff plongstaff at cvs.gnucash.org
Fri Dec 8 22:43:01 EST 2006


Author: plongstaff
Date: 2006-12-08 22:43:00 -0500 (Fri, 08 Dec 2006)
New Revision: 15195
Trac: http://svn.gnucash.org/trac/changeset/15195

Modified:
   gnucash/branches/gda-dev/src/gnome/dialog-scheduledxaction.c
Log:
Add begin_edit()/commit_edit() around lines filling in new sx


Modified: gnucash/branches/gda-dev/src/gnome/dialog-scheduledxaction.c
===================================================================
--- gnucash/branches/gda-dev/src/gnome/dialog-scheduledxaction.c	2006-12-09 03:39:45 UTC (rev 15194)
+++ gnucash/branches/gda-dev/src/gnome/dialog-scheduledxaction.c	2006-12-09 03:43:00 UTC (rev 15195)
@@ -1031,6 +1031,8 @@
 void
 gnc_sxed_save_sx( SchedXactionEditorDialog *sxed )
 {
+		gnc_sx_begin_edit( sxed->sx );
+
         /* name */
         {
                 char *name;
@@ -1124,6 +1126,7 @@
                 xaccSchedXactionSetStartDate( sxed->sx, &gdate );
         }
 
+		gnc_sx_commit_edit( sxed->sx );
 }
 
 static void



More information about the gnucash-changes mailing list