aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/tunnelspage.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-09 16:27:00 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-09 16:27:00 +0200
commit938b320b1db26cf02f0d55cd2c4e9480b456fb54 (patch)
tree91a867536fd3ab5947c164aa2c9b81253a4cde8c /ui/tunnelspage.go
parentconf: don't verify scope as part of ip checking (diff)
downloadwireguard-windows-938b320b1db26cf02f0d55cd2c4e9480b456fb54.tar.xz
wireguard-windows-938b320b1db26cf02f0d55cd2c4e9480b456fb54.zip
ui: show correct name in deletion confirmation
Diffstat (limited to 'ui/tunnelspage.go')
-rw-r--r--ui/tunnelspage.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/tunnelspage.go b/ui/tunnelspage.go
index 0ef1842a..d0b219c9 100644
--- a/ui/tunnelspage.go
+++ b/ui/tunnelspage.go
@@ -452,7 +452,7 @@ func (tp *TunnelsPage) onDelete() {
if len(indices) > 1 {
topic = fmt.Sprintf("%d tunnels", len(indices))
} else {
- topic = fmt.Sprintf("ā€˜%sā€™", tp.listView.model.tunnels[0].Name)
+ topic = fmt.Sprintf("ā€˜%sā€™", tp.listView.model.tunnels[indices[0]].Name)
}
if walk.DlgCmdNo == walk.MsgBox(
tp.Form(),