Fix the edit price to properly check the number of selected prices.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12142 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2005-12-07 02:22:06 +00:00
parent b809e86dc0
commit 4e6f652733
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2005-12-06 David Hampton <hampton@employees.org> 2005-12-06 David Hampton <hampton@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 * lib/goffice-0.0.4/goffice/gtk/go-combo-text.c: Comment out
function that does nothing except generate a compiler warning. function that does nothing except generate a compiler warning.

View File

@ -124,8 +124,9 @@ gnc_prices_dialog_edit_clicked (GtkWidget *widget, gpointer data)
LEAVE("no price selected"); LEAVE("no price selected");
return; return;
} }
if (g_list_next(!price_list)) { if (g_list_next(price_list)) {
LEAVE("soo many prices selected"); g_list_free(price_list);
LEAVE("too many prices selected");
return; return;
} }