From 78d8485243bec3bd8e0d87cd30b5f0e4a078df1a Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 1 May 2013 08:02:17 -0700 Subject: [PATCH] Allow config window to be closed with meta-W window.confirmClose() should close the window immediately when there is no rootView which is the case in the config window. --- src/app/window.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/window.coffee b/src/app/window.coffee index fdad3efec..a70829762 100644 --- a/src/app/window.coffee +++ b/src/app/window.coffee @@ -263,4 +263,7 @@ window.profile = (description, fn) -> # Public: Shows a dialog asking if the window was _really_ meant to be closed. confirmClose = -> - rootView.confirmClose().done -> window.close() + if rootView? + rootView.confirmClose().done -> window.close() + else + window.close()