r17556 - gnucash/trunk/src/gnome - Price Editor: Set the correct source for new, user-entered prices. This builds on r17525 to fix this problem, which was introduced in r17444.
Charles Day
cedayiv at cvs.gnucash.org
Thu Sep 18 18:21:55 EDT 2008
Author: cedayiv
Date: 2008-09-18 18:21:54 -0400 (Thu, 18 Sep 2008)
New Revision: 17556
Trac: http://svn.gnucash.org/trac/changeset/17556
Modified:
gnucash/trunk/src/gnome/dialog-price-editor.c
Log:
Price Editor: Set the correct source for new, user-entered prices. This builds on r17525 to fix this problem, which was introduced in r17444.
Modified: gnucash/trunk/src/gnome/dialog-price-editor.c
===================================================================
--- gnucash/trunk/src/gnome/dialog-price-editor.c 2008-09-18 20:49:01 UTC (rev 17555)
+++ gnucash/trunk/src/gnome/dialog-price-editor.c 2008-09-18 22:21:54 UTC (rev 17556)
@@ -46,6 +46,7 @@
#define DIALOG_PRICE_EDIT_CM_CLASS "dialog-price-edit"
#define GCONF_SECTION "dialogs/price_editor"
+#define DIALOG_PRICE_EDIT_SOURCE "user:price-editor"
/* This static indicates the debugging module that this .o belongs to. */
/* static short module = MOD_GUI; */
@@ -135,7 +136,7 @@
currency = gnc_default_currency ();
date.tv_sec = time (NULL);
date.tv_nsec = 0;
- source = "user:price-editor";
+ source = DIALOG_PRICE_EDIT_SOURCE;
type = "";
value = gnc_numeric_zero ();
}
@@ -448,6 +449,7 @@
} else {
price = gnc_price_create (pedit_dialog->book);
}
+ gnc_price_set_source (price, DIALOG_PRICE_EDIT_SOURCE);
pedit_dialog->new = TRUE;
/* New price will only have one ref, this dialog. */
More information about the gnucash-changes
mailing list