summaryrefslogtreecommitdiff
path: root/scene/main/scene_main_loop.cpp
diff options
context:
space:
mode:
authorvolzhs <volzhs@gmail.com>2017-04-25 20:05:22 +0900
committervolzhs <volzhs@gmail.com>2017-04-25 20:05:22 +0900
commitde4267fc992388f9e841a6427436d083166b49e0 (patch)
treeda204d6652156758009cb806ac69cc71cb0d1d91 /scene/main/scene_main_loop.cpp
parentb6e0eaf3ca74d9777c6869d8519db6264866d1e6 (diff)
Fix auto_accept_quit option to work
auto_accept_quit value is set first properly with GLOBAL_DEF("application/auto_accept_quit", true) in main.cpp after that it's reset to true in SceneTree:init() whatever value was.
Diffstat (limited to 'scene/main/scene_main_loop.cpp')
-rw-r--r--scene/main/scene_main_loop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/main/scene_main_loop.cpp b/scene/main/scene_main_loop.cpp
index be28479f39..a43938c661 100644
--- a/scene/main/scene_main_loop.cpp
+++ b/scene/main/scene_main_loop.cpp
@@ -510,8 +510,6 @@ void SceneTree::input_event(const InputEvent &p_event) {
void SceneTree::init() {
//_quit=false;
- accept_quit = true;
- quit_on_go_back = true;
initialized = true;
input_handled = false;
@@ -2266,6 +2264,8 @@ SceneTree::SceneTree() {
singleton = this;
_quit = false;
+ accept_quit = true;
+ quit_on_go_back = true;
initialized = false;
#ifdef TOOLS_ENABLED
editor_hint = false;