[gnome-shell] search: Ensure that we correctly remove remote search providers
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] search: Ensure that we correctly remove remote search providers
- Date: Fri, 26 Jul 2013 23:14:51 +0000 (UTC)
commit 4efd363134e591e1e298c33c64509c627234a1c2
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Jul 11 14:25:08 2013 -0400
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/search.js b/js/ui/search.js
index 03348b2..1fd442e 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() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]