[gnome-shell/gnome-3-14] network: properly remove connections from list
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-14] network: properly remove connections from list
- Date: Wed, 26 Nov 2014 21:08:43 +0000 (UTC)
commit 86618ce1f963be53410ac5e68d99a8b7bb82e0c6
Author: Ryan Lortie <desrt desrt ca>
Date: Sun Nov 16 15:50:14 2014 -0800
network: properly remove connections from list
Due to a typo we were always removing the first (index 0) connection
from the global list of connections instead of the correct one.
This resulted in some connections remaining in the shell's connection
list long after they were removed. In particular, this resulted in
multiple copies of a bluetooth connection appearing after suspend/resume
(when the device was readded and the cached connection list was
rescanned).
https://bugzilla.gnome.org/show_bug.cgi?id=740227
js/ui/status/network.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 049406d..4f02d78 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -1866,7 +1866,7 @@ const NMApplet = new Lang.Class({
_connectionRemoved: function(connection) {
let pos = this._connections.indexOf(connection);
if (pos != -1)
- this._connections.splice(connection, 1);
+ this._connections.splice(pos, 1);
let section = connection._section;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]