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

            self.copyFiles!.setRemoteFileList()
            self.reloadtabledata()
            self.working.stopAnimation(nil)
            self.rsynctableView.isEnabled = true
            self.restoretableView.isEnabled = true
        } else {
            self.restorebutton.title = "Restore"
            self.workingRsync.stopAnimation(nil)

        let answer = Alerts.dialogOKCancel("Copy single files or directory", text: "Start restore?")
        if answer {
            self.restorebutton.isEnabled = false
            self.getfiles = true
            self.workingRsync.startAnimation(nil)
            self.copyFiles!.executeRsync(remotefile: remoteCatalog!.stringValue, localCatalog: localCatalog!.stringValue, dryrun: false)
