瀏覽代碼

Merge pull request #8529 from volzhs/auto-accept-quit

Fix auto_accept_quit option to work (2.1)
Rémi Verschelde 8 年之前
父節點
當前提交
13b15633d3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/main/scene_main_loop.cpp

+ 1 - 1
scene/main/scene_main_loop.cpp

@@ -460,7 +460,6 @@ void SceneTree::input_event(const InputEvent &p_event) {
 void SceneTree::init() {
 
 	//_quit=false;
-	accept_quit = true;
 	initialized = true;
 	input_handled = false;
 
@@ -1625,6 +1624,7 @@ SceneTree::SceneTree() {
 
 	singleton = this;
 	_quit = false;
+	accept_quit = true;
 	initialized = false;
 #ifdef TOOLS_ENABLED
 	editor_hint = false;