diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2016-01-08 16:53:47 +0100 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2016-01-08 16:53:47 +0100 |
commit | 43b292de1e19eab6d5d6cf6c1aff438767f1c5f7 (patch) | |
tree | 4f75327db0d6eddd4cabffab3c10aa39d1ba504a /tools/editor | |
parent | 6541f6418e5b1f1f3a35a010dcb04bd04f5b4e6f (diff) |
Scene->Close scene: ask confirmation only when 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)"); |