aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-11-01 18:59:14 +0530
committerRoopesh Chander <roop@roopc.net>2018-11-01 22:08:01 +0530
commit196daccddec34e0c2dcf0a453f1dce6353e89daa (patch)
tree1fd4a108c546f26d0c31c0a2d78f610a33d28ccb /WireGuard
parentNE: Show an alert when someone tries to start the VPN from iOS Settings (diff)
downloadwireguard-apple-196daccddec34e0c2dcf0a453f1dce6353e89daa.tar.xz
wireguard-apple-196daccddec34e0c2dcf0a453f1dce6353e89daa.zip
QR code: Fix what happens when an error is shown
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard')
-rw-r--r--WireGuard/WireGuard/UI/iOS/QRScanViewController.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/QRScanViewController.swift b/WireGuard/WireGuard/UI/iOS/QRScanViewController.swift
index ec397f6..99af984 100644
--- a/WireGuard/WireGuard/UI/iOS/QRScanViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/QRScanViewController.swift
@@ -131,7 +131,7 @@ class QRScanViewController: UIViewController {
func scanDidEncounterError(title: String, message: String) {
let alertController = UIAlertController(title: title, message: message, preferredStyle: .alert)
alertController.addAction(UIAlertAction(title: "OK", style: .default, handler: { [weak self] _ in
- self?.navigationController?.popViewController(animated: true)
+ self?.dismiss(animated: true, completion: nil)
}))
present(alertController, animated: true)
captureSession = nil