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:
parent
7bdee9ce05
commit
4efd363134
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user