Deselect profile row on parsing error

This commit is contained in:
Davide De Rosa 2018-10-27 12:15:19 +02:00
parent 663764177a
commit 7b7804091b
1 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,9 @@ class ImportedHostsViewController: UITableViewController {
}
let url = pendingConfigurationURLs[indexPath.row]
guard let parsedFile = ParsedFile.from(url, withErrorAlertIn: self) else {
if let selectedIP = tableView.indexPathForSelectedRow {
tableView.deselectRow(at: selectedIP, animated: true)
}
return false
}
self.parsedFile = parsedFile