                     self.rsynctableView.isEnabled = false
                     self.restoretableView.isEnabled = false
                     self.rsyncindex = index
-                    self.indexselected = index
                     self.copyFiles = CopySingleFiles(index: index)
                     self.working.startAnimation(nil)
                     self.displayRemoteserver(index: index)

    func getSource(index: Int)
}

class ViewControllerCopyFiles: NSViewController, SetConfigurations, GetIndex, Delay, VcCopyFiles {

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


extension ViewControllerCopyFiles: DismissViewController {
    func dismiss_view(viewcontroller: NSViewController) {
        self.rsynctableView.isEnabled = true
        self.restoretableView.isEnabled = true
        self.dismissViewController(viewcontroller)
    }
}
