From 754df5ebe2bb912176b54c7ca7e2e48c9093d104 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 15 Feb 2013 23:17:44 -0500 Subject: [PATCH] shell-app-system: Ensure that we correctly order subsearches As we use g_slist_prepend for efficiency when building the list of results before ordering it, we need to make sure we traverse the list of previous results backwards so that it's built in the same order. https://bugzilla.gnome.org/show_bug.cgi?id=693936 --- src/shell-app-system.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shell-app-system.c b/src/shell-app-system.c index 61e86f53a..66f94f808 100644 --- a/src/shell-app-system.c +++ b/src/shell-app-system.c @@ -780,6 +780,8 @@ shell_app_system_subsearch (ShellAppSystem *system, GSList *substring_results = NULL; GSList *normalized_terms = normalize_terms (terms); + previous_results = g_slist_reverse (previous_results); + for (iter = previous_results; iter; iter = iter->next) { ShellApp *app = iter->data;