diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-01-08 17:03:58 +0100 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2016-01-08 17:03:58 +0100 |
commit | 405cfb6da2d6d4ccbe19a88b133e73967d0769c9 (patch) | |
tree | 0912e7fa992fc44997e9e64ce1bb0574560866ed /tools/editor | |
parent | 516ebbadb96ee658e44f30af17c8491ed5f3dd71 (diff) | |
parent | 43b292de1e19eab6d5d6cf6c1aff438767f1c5f7 (diff) |
Merge pull request #3278 from neikeq/issue_305
Close scene menu option asks for confirmation only if there are unsaved changes
Diffstat (limited to 'tools/editor')
-rw-r--r-- | tools/editor/editor_node.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index 9fe0409c0e..f180a26e7b 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -2108,7 +2108,7 @@ void EditorNode::_menu_option_confirm(int p_option,bool p_confirmed) { } break; case FILE_CLOSE: { - if (!p_confirmed) { + if (!p_confirmed && unsaved_cache) { confirmation->get_ok()->set_text("Yes"); //confirmation->get_cancel()->show(); confirmation->set_text("Close scene? (Unsaved changes will be lost)"); |