[Gnucash-changes] r12142 - gnucash/trunk - Fix the edit price to
properly check the number of selected prices.
David Hampton
hampton at cvs.gnucash.org
Tue Dec 6 21:22:07 EST 2005
Author: hampton
Date: 2005-12-06 21:22:06 -0500 (Tue, 06 Dec 2005)
New Revision: 12142
Trac: http://svn.gnucash.org/trac/changeset/12142
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/gnome/dialog-price-edit-db.c
Log:
Fix the edit price to properly check the number of selected prices.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2005-12-07 02:14:20 UTC (rev 12141)
+++ gnucash/trunk/ChangeLog 2005-12-07 02:22:06 UTC (rev 12142)
@@ -1,5 +1,8 @@
2005-12-06 David Hampton <hampton at employees.org>
+ * src/gnome/dialog-price-edit-db.c: Fix the edit price to properly
+ check the number of selected prices.
+
* lib/goffice-0.0.4/goffice/gtk/go-combo-text.c: Comment out
function that does nothing except generate a compiler warning.
Modified: gnucash/trunk/src/gnome/dialog-price-edit-db.c
===================================================================
--- gnucash/trunk/src/gnome/dialog-price-edit-db.c 2005-12-07 02:14:20 UTC (rev 12141)
+++ gnucash/trunk/src/gnome/dialog-price-edit-db.c 2005-12-07 02:22:06 UTC (rev 12142)
@@ -124,8 +124,9 @@
LEAVE("no price selected");
return;
}
- if (g_list_next(!price_list)) {
- LEAVE("soo many prices selected");
+ if (g_list_next(price_list)) {
+ g_list_free(price_list);
+ LEAVE("too many prices selected");
return;
}
More information about the gnucash-changes
mailing list