Deselect profile row on parsing error
This commit is contained in:
parent
663764177a
commit
7b7804091b
|
@ -66,6 +66,9 @@ class ImportedHostsViewController: UITableViewController {
|
||||||
}
|
}
|
||||||
let url = pendingConfigurationURLs[indexPath.row]
|
let url = pendingConfigurationURLs[indexPath.row]
|
||||||
guard let parsedFile = ParsedFile.from(url, withErrorAlertIn: self) else {
|
guard let parsedFile = ParsedFile.from(url, withErrorAlertIn: self) else {
|
||||||
|
if let selectedIP = tableView.indexPathForSelectedRow {
|
||||||
|
tableView.deselectRow(at: selectedIP, animated: true)
|
||||||
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
self.parsedFile = parsedFile
|
self.parsedFile = parsedFile
|
||||||
|
|
Loading…
Reference in New Issue