IOS-231 Testing errors on verify new accounts IOS-230
authorDirk Zimmermann <dirk@pep-project.org>
Tue, 25 Oct 2016 11:33:55 +0200
branchIOS-230
changeset 8680664f5352a31
parent 867 89ccccb16970
child 870 dd67c28b7449
IOS-231 Testing errors on verify new accounts
pEpForiOS/UI/ImapSetup/SMTPSettingsTableView.swift
     1.1 --- a/pEpForiOS/UI/ImapSetup/SMTPSettingsTableView.swift	Tue Oct 25 09:47:36 2016 +0200
     1.2 +++ b/pEpForiOS/UI/ImapSetup/SMTPSettingsTableView.swift	Tue Oct 25 11:33:55 2016 +0200
     1.3 @@ -40,6 +40,9 @@
     1.4  
     1.5      open override func viewWillAppear(_ animated: Bool) {
     1.6          super.viewWillAppear(animated)
     1.7 +
     1.8 +        Account.delegate = self
     1.9 +
    1.10          if model.serverSMTP == nil {
    1.11              serverValue.becomeFirstResponder()
    1.12          }
    1.13 @@ -53,6 +56,11 @@
    1.14              portValueTextField], parentView: self.view)
    1.15      }
    1.16  
    1.17 +    open override func viewWillDisappear(_ animated: Bool) {
    1.18 +        super.viewWillDisappear(animated)
    1.19 +        Account.delegate = nil
    1.20 +    }
    1.21 +
    1.22      open override func didReceiveMemoryWarning() {
    1.23          super.didReceiveMemoryWarning()
    1.24      }