             self.storageapi = PersistentStorageAPI(profile: nil)
         }
         self.setFields()
+    }
+
+    override func viewDidDisappear() {
+        super.viewDidDisappear()
+        self.diddissappear = true
     }
 
     private func initcombox(combobox: NSComboBox, index: Int) {


    override func viewDidAppear() {
        super.viewDidAppear()
        self.backuptypeselected = .synchronize
        self.backuptype.selectItem(at: 0)
        self.index = self.index(viewcontroller: .vctabmain)

    // Reference to rsync parameters to use in combox
    var comboBoxValues = ["synchronize", "snapshots", "single file"]
    var backuptypeselected: Typebackup = .synchronize
    var diddissappear: Bool = false

    @IBOutlet weak var newTableView: NSTableView!
    @IBOutlet weak var viewParameter1: NSTextField!
