summaryrefslogtreecommitdiff
path: root/editor/editor_node.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-08-19 10:36:03 +0200
committerGitHub <noreply@github.com>2017-08-19 10:36:03 +0200
commitc57671f0b317f31f766b54578d544cd80454335e (patch)
tree50b55793a550494237ce4852d41076a4fa59f97e /editor/editor_node.cpp
parent9acd9f8e454332547b04f6a9f4c6d75a63a0b18d (diff)
parent02670a380655b78d010b57432d433e8b249806a7 (diff)
Merge pull request #10435 from endragor/export-quit
Quit after command-line export
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r--editor/editor_node.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 1017aabc9d..a5f0478854 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -371,6 +371,7 @@ void EditorNode::_fs_changed() {
if (preset->get_name() == export_defer.preset) {
break;
}
+ preset.unref();
}
if (preset.is_null()) {
String err = "Unknown export preset: " + export_defer.preset;
@@ -385,7 +386,7 @@ void EditorNode::_fs_changed() {
}
}
- export_defer.preset = "";
+ get_tree()->quit();
}
{