Forward wizard delegate after import

Necessary to delegate adding to organizer.
This commit is contained in:
Davide De Rosa 2018-10-27 12:12:01 +02:00
parent 0e7c0b6388
commit 663764177a
2 changed files with 5 additions and 0 deletions

View File

@ -34,6 +34,8 @@ class ImportedHostsViewController: UITableViewController {
private var parsedFile: ParsedFile?
weak var wizardDelegate: WizardDelegate?
override func viewDidLoad() {
super.viewDidLoad()
@ -75,6 +77,7 @@ class ImportedHostsViewController: UITableViewController {
return
}
wizard.parsedFile = parsedFile
wizard.delegate = wizardDelegate
}
@IBAction private func close() {

View File

@ -139,6 +139,8 @@ class OrganizerViewController: UITableViewController, TableModelHost {
providerVC.availableNames = availableProviderNames ?? []
}
vc.delegate = self
} else if let vc = destination as? ImportedHostsViewController {
vc.wizardDelegate = self
}
}