From 7b7804091bfb5a7b9e2747c748010dfe32aa26b2 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sat, 27 Oct 2018 12:15:19 +0200 Subject: [PATCH] Deselect profile row on parsing error --- .../Scenes/Organizer/ImportedHostsViewController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Passepartout-iOS/Scenes/Organizer/ImportedHostsViewController.swift b/Passepartout-iOS/Scenes/Organizer/ImportedHostsViewController.swift index e9cd0087..12df0aff 100644 --- a/Passepartout-iOS/Scenes/Organizer/ImportedHostsViewController.swift +++ b/Passepartout-iOS/Scenes/Organizer/ImportedHostsViewController.swift @@ -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