marinofaggiana 5 years ago
parent
commit
c2967c764c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      iOSClient/Offline/NCOffline.swift

+ 2 - 0
iOSClient/Offline/NCOffline.swift

@@ -143,6 +143,8 @@ class NCOffline: UIViewController, UIGestureRecognizerDelegate, NCListCellDelega
     //MARK: - NotificationCenter
 
     @objc func deleteFile(_ notification: NSNotification) {
+        if self.view?.window == nil { return }
+        
         self.loadDatasource()
     }