diff options
author | Dana Olson <dana@shineuponthee.com> | 2014-04-23 22:06:12 -0400 |
---|---|---|
committer | Dana Olson <dana@shineuponthee.com> | 2014-04-23 22:06:12 -0400 |
commit | aa84f4d261dabc35f6e3a18c253bf7b948144914 (patch) | |
tree | 5f051b4cfb89c7a9092e20cb7ba0904e59e93ab3 | |
parent | 31f88a700656fc89877864e864d27b70e9aff70f (diff) |
stops running process when quitting editor
I noticed a bug where I could close Godot while I was running a project.
If the program was left running and then ran into an error,
or if an error was caught by the debugger and then I quit Godot,
I could no longer close the running project without manually killing it.
This fixes that problem by essentially hitting the Stop button automatically
just prior to quitting the editor.
-rw-r--r-- | tools/editor/editor_node.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index 4ed565fdc3..f6653ac3d6 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -1982,7 +1982,8 @@ void EditorNode::_menu_option_confirm(int p_option,bool p_confirmed) { confirmation->popup_centered(Size2(300,70)); break; } - + + _menu_option_confirm(RUN_STOP,true); get_scene()->quit(); } break; |