From 4efd363134e591e1e298c33c64509c627234a1c2 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 11 Jul 2013 14:25:08 -0400 Subject: [PATCH] search: Ensure that we correctly remove remote search providers When we reload the remote search providers, we currently try to remove all remote providers, and then re-scan. It turns out that we sometimes remove the wrong providers from the remote provider list, causing us to have some providers not correctly unloaded. https://bugzilla.gnome.org/show_bug.cgi?id=700283 --- js/ui/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/search.js b/js/ui/search.js index 03348b2d8..1fd442e1f 100644 --- a/js/ui/search.js +++ b/js/ui/search.js @@ -31,7 +31,7 @@ const SearchSystem = new Lang.Class({ let remoteIndex = this._remoteProviders.indexOf(provider); if (remoteIndex != -1) - this._remoteProviders.splice(index, 1); + this._remoteProviders.splice(remoteIndex, 1); }, getProviders: function() {