marinofaggiana 4 years ago
parent
commit
092fe7b163
1 changed files with 1 additions and 0 deletions
  1. 1 0
      iOSClient/Main/Collection/NCCollectionViewCommon.swift

+ 1 - 0
iOSClient/Main/Collection/NCCollectionViewCommon.swift

@@ -637,6 +637,7 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
     
     
     @objc func longPressCollecationView(gestureRecognizer: UILongPressGestureRecognizer) {
     @objc func longPressCollecationView(gestureRecognizer: UILongPressGestureRecognizer) {
         if gestureRecognizer.state != .began { return }
         if gestureRecognizer.state != .began { return }
+        if serverUrl == "" { return }
     
     
         //let type = pasteboard.types
         //let type = pasteboard.types
         var title = "_paste_file_"
         var title = "_paste_file_"