     }
 
     @objc(tableViewDoubleClick:) func tableViewDoubleClick(sender: AnyObject) {
-        guard self.index != nil else { return }
         guard self.remoteCatalog.stringValue.isEmpty == false else { return }
         guard self.localCatalog.stringValue.isEmpty == false else { return }
         let answer = Alerts.dialogOKCancel("Copy single files or directory", text: "Start restore?")
         if answer {
             self.restorebutton.isEnabled = false
+            self.rsynctableView.isEnabled = false
+            self.restoretableView.isEnabled = false
             self.getfiles = true
             self.workingRsync.startAnimation(nil)
             self.copyFiles!.executeRsync(remotefile: remoteCatalog!.stringValue, localCatalog: localCatalog!.stringValue, dryrun: false)


extension ViewControllerCopyFiles: DismissViewController {
    func dismiss_view(viewcontroller: NSViewController) {
        self.dismissViewController(viewcontroller)
    }
}

    func getSource(index: Int)
}

class ViewControllerCopyFiles: NSViewController, SetConfigurations, Delay, VcCopyFiles {

    var copyFiles: CopySingleFiles?
    // var index: Int?
    // var indexselected: Int?
    var rsyncindex: Int?
    var getfiles: Bool = false
    var estimated: Bool = false
