mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Actually save 'list' when we reverse it
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6962 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
2ab8a1186e
commit
00a88c5d4b
@ -233,7 +233,7 @@ gnc_search_dialog_prepend_item (GNCSearchWindow *sw, gpointer object)
|
||||
static void
|
||||
gnc_search_dialog_display_results (GNCSearchWindow *sw)
|
||||
{
|
||||
GList *list;
|
||||
GList *list, *node;
|
||||
GtkAdjustment *vadjustment;
|
||||
gfloat save_value = 0.0;
|
||||
gboolean have_list = TRUE;
|
||||
@ -308,8 +308,8 @@ gnc_search_dialog_display_results (GNCSearchWindow *sw)
|
||||
list = g_list_reverse (gncQueryRun (sw->q));
|
||||
|
||||
/* Add the list of items to the clist */
|
||||
for (; list; list = list->next) {
|
||||
gnc_search_dialog_prepend_item (sw, list->data);
|
||||
for (node = list; node; node = node->next) {
|
||||
gnc_search_dialog_prepend_item (sw, node->data);
|
||||
}
|
||||
|
||||
/* Need to reverse again for internal consistency */
|
||||
|
Loading…
Reference in New Issue
Block a user