aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-03-17 15:59:55 +0530
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-18 06:46:55 +0100
commitf81275812c7318f34fcc3c605f81b4437dddfe98 (patch)
tree06637c32bc8f42c5052622e7bd660efce3d132ae
parentTunnelName: sort correctly with numbers and capitals (diff)
downloadwireguard-apple-f81275812c7318f34fcc3c605f81b4437dddfe98.tar.xz
wireguard-apple-f81275812c7318f34fcc3c605f81b4437dddfe98.zip
macOS: Nullify observationToken on prepareForReuse()
Signed-off-by: Roopesh Chander <roop@roopc.net>
-rw-r--r--WireGuard/WireGuard/UI/macOS/View/KeyValueRow.swift1
1 files changed, 1 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/View/KeyValueRow.swift b/WireGuard/WireGuard/UI/macOS/View/KeyValueRow.swift
index 3d3f2577..2f037d83 100644
--- a/WireGuard/WireGuard/UI/macOS/View/KeyValueRow.swift
+++ b/WireGuard/WireGuard/UI/macOS/View/KeyValueRow.swift
@@ -108,6 +108,7 @@ class EditableKeyValueRow: NSView {
key = ""
value = ""
isKeyInBold = false
+ observationToken = nil
}
}