Fix deleting entries

This commit is contained in:
Yishi Lin 2017-06-07 01:05:53 +08:00
parent b48a7438ed
commit 7bfc3cc7d4

View file

@ -141,7 +141,7 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
} }
@objc private func decryptThenShowPassword() { @objc private func decryptThenShowPassword() {
guard let passwordEntity = passwordEntity else { guard let passwordEntity = passwordEntity, passwordEntity.path != nil else {
Utils.alert(title: "Cannot Show Password", message: "The password does not exist.", controller: self, handler: {(UIAlertAction) -> Void in Utils.alert(title: "Cannot Show Password", message: "The password does not exist.", controller: self, handler: {(UIAlertAction) -> Void in
self.navigationController!.popViewController(animated: true) self.navigationController!.popViewController(animated: true)
}) })