Forward wizard delegate after import
Necessary to delegate adding to organizer.
This commit is contained in:
parent
0e7c0b6388
commit
663764177a
|
@ -34,6 +34,8 @@ class ImportedHostsViewController: UITableViewController {
|
||||||
|
|
||||||
private var parsedFile: ParsedFile?
|
private var parsedFile: ParsedFile?
|
||||||
|
|
||||||
|
weak var wizardDelegate: WizardDelegate?
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
|
||||||
|
@ -75,6 +77,7 @@ class ImportedHostsViewController: UITableViewController {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
wizard.parsedFile = parsedFile
|
wizard.parsedFile = parsedFile
|
||||||
|
wizard.delegate = wizardDelegate
|
||||||
}
|
}
|
||||||
|
|
||||||
@IBAction private func close() {
|
@IBAction private func close() {
|
||||||
|
|
|
@ -139,6 +139,8 @@ class OrganizerViewController: UITableViewController, TableModelHost {
|
||||||
providerVC.availableNames = availableProviderNames ?? []
|
providerVC.availableNames = availableProviderNames ?? []
|
||||||
}
|
}
|
||||||
vc.delegate = self
|
vc.delegate = self
|
||||||
|
} else if let vc = destination as? ImportedHostsViewController {
|
||||||
|
vc.wizardDelegate = self
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue