         } else {
             window?.sheetParent?.endSheet(window!)
         }
+    }
+
+    @IBAction func cancelQuitClick(_ sender: Any) {
+        quitConfirmationPanel.close()
     }
 
     // MARK: Video playback

    }

    @IBAction func close(_ sender: AnyObject?) {
        // This seems needed for screensavers as our lifecycle is different from a regular app
        preferences.synchronize()
        logPanel.close()
        if appMode {

    @IBOutlet var newDisplayModePopup: NSPopUpButton!
    @IBOutlet var newViewingModePopup: NSPopUpButton!
    @IBOutlet var displayInstructionLabel: NSTextField!
    @IBOutlet var quitConfirmationPanel: NSPanel!
    
    var player: AVPlayer = AVPlayer()

    var videos: [AerialVideo]?
