From 7042e36fb5a8fef260b831a757ea9216a5d6371c Mon Sep 17 00:00:00 2001 From: Jeroen Leenarts Date: Tue, 25 Sep 2018 22:30:16 +0200 Subject: [PATCH] Present alert for title. Signed-off-by: Jason A. Donenfeld --- WireGuard/ViewControllers/QRScanViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WireGuard/ViewControllers/QRScanViewController.swift b/WireGuard/ViewControllers/QRScanViewController.swift index c174637..5beb1eb 100644 --- a/WireGuard/ViewControllers/QRScanViewController.swift +++ b/WireGuard/ViewControllers/QRScanViewController.swift @@ -116,6 +116,8 @@ class QRScanViewController: UIViewController { } })) + self.present(alert, animated: true) + } catch { scanDidEncounterError(title: "Invalid Code", message: "The scanned code is not a valid WireGuard config file.") }