QR code: Fix what happens when an error is shown

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2018-11-01 18:59:14 +05:30
parent 7608cebbc6
commit 196daccdde
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ class QRScanViewController: UIViewController {
func scanDidEncounterError(title: String, message: String) { func scanDidEncounterError(title: String, message: String) {
let alertController = UIAlertController(title: title, message: message, preferredStyle: .alert) let alertController = UIAlertController(title: title, message: message, preferredStyle: .alert)
alertController.addAction(UIAlertAction(title: "OK", style: .default, handler: { [weak self] _ in 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) present(alertController, animated: true)
captureSession = nil captureSession = nil