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
This commit is contained in:
Jasper St. Pierre 2013-07-11 14:25:08 -04:00
parent 7bdee9ce05
commit 4efd363134

View File

@ -31,7 +31,7 @@ const SearchSystem = new Lang.Class({
let remoteIndex = this._remoteProviders.indexOf(provider); let remoteIndex = this._remoteProviders.indexOf(provider);
if (remoteIndex != -1) if (remoteIndex != -1)
this._remoteProviders.splice(index, 1); this._remoteProviders.splice(remoteIndex, 1);
}, },
getProviders: function() { getProviders: function() {