From d550461c609c95a268d65000984cd5e04739ab44 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Tue, 22 Oct 2019 23:04:39 +0200 Subject: [PATCH] Deselect imported host row regardless --- .../Scenes/Organizer/ImportedHostsViewController.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Passepartout-iOS/Scenes/Organizer/ImportedHostsViewController.swift b/Passepartout-iOS/Scenes/Organizer/ImportedHostsViewController.swift index 5210f0f1..bfd85f4c 100644 --- a/Passepartout-iOS/Scenes/Organizer/ImportedHostsViewController.swift +++ b/Passepartout-iOS/Scenes/Organizer/ImportedHostsViewController.swift @@ -84,12 +84,10 @@ class ImportedHostsViewController: UITableViewController { } private func tryParseURL(_ url: URL, cell: UITableViewCell) -> Bool { + deselectSelectedRow() + importer = HostImporter(withConfigurationURL: url, parentViewController: self) importer?.importHost(withPassphrase: nil, removeOnError: false, removeOnCancel: false) { - - // FIXME: HostImporter, also deselect on error/cancel, or just deselect immediately - self.deselectSelectedRow() - self.parsingResult = $0 self.perform(segue: StoryboardSegue.Organizer.importHostSegueIdentifier) }