                         newIndexOffset += 1
                     }
                 }
-
                 tableView.endUpdates()
             }
         }
+        else
 
         // We have inter tableView drag-n-drop ?
         // if source is a playlist, drag its items into the destination via copy

    }
    
    func tableView(_ tableView: NSTableView, validateDrop info: NSDraggingInfo, proposedRow row: Int, proposedDropOperation dropOperation: NSTableViewDropOperation) -> NSDragOperation {

        if dropOperation == .above {
            let pboard = info.draggingPasteboard();
            let options = [NSPasteboardURLReadingFileURLsOnlyKey : true,

        self.restorePlaylists(restoreButton)
    }

    var historyCache: NSDictionaryControllerKeyValuePair? = nil
    override func viewWillAppear() {
        // cache our list before editing
        playCache = playlists

        // overlay in history using NSDictionaryControllerKeyValuePair Protocol setKey
        historyCache = playlistArrayController.newObject() as NSDictionaryControllerKeyValuePair
        historyCache!.key = k.hist
        historyCache!.value = appDelegate.histories
        playlistArrayController.addObject(historyCache!)
        
        self.playlistSplitView.setPosition(120, ofDividerAt: 0)
    }
