IOS-594 crash fix
authorXavier Algarra <xavier@pep-project.org>
Wed, 19 Jul 2017 17:16:12 +0200
changeset 2437a62c9a9552ea
parent 2436 848f2a1d0447
child 2438 92bacc69f716
child 2457 c0fdb40890a7
IOS-594 crash fix
pEpForiOS/UI/EmailDisplay/EmailListViewController.swift
     1.1 --- a/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Wed Jul 19 09:34:10 2017 +0200
     1.2 +++ b/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Wed Jul 19 17:16:12 2017 +0200
     1.3 @@ -71,8 +71,9 @@
     1.4          if let fol = config?.folder {
     1.5              fol.updateLastLookAt()
     1.6          }
     1.7 -
     1.8 -        viewModel = EmailListViewModel(config: config, delegate: self)
     1.9 +        if viewModel == nil {
    1.10 +            viewModel = EmailListViewModel(config: config, delegate: self)
    1.11 +        }
    1.12          MessageModelConfig.messageFolderDelegate = self
    1.13          
    1.14      }