diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-06-27 08:12:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-27 08:12:55 +0200 |
commit | 460ec3344e652f968ab2ca670a1178ed790ea29f (patch) | |
tree | 293a7d1216861fcb69284a3a6a333afbf84cfda3 | |
parent | 3ce046ee0c49b23bb1e5d59a5a0fe8c70bc64c7d (diff) | |
parent | 090ddada46161bd2a30d2de1178458a58f50a146 (diff) |
Merge pull request #9413 from Noshyaar/pr-save1
Clean up redundancy in scene save confirmation
-rw-r--r-- | editor/editor_node.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 4903d86bff..ab7a3ed459 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -2746,12 +2746,10 @@ void EditorNode::_discard_changes(const String &p_str) { _update_scene_tabs(); if (current_option == FILE_CLOSE_ALL_AND_QUIT || current_option == FILE_CLOSE_ALL_AND_RUN_PROJECT_MANAGER) { - int next_scene = _next_unsaved_scene(); - if (next_scene == -1) { + if (_next_unsaved_scene() == -1) { current_option = current_option == FILE_CLOSE_ALL_AND_QUIT ? FILE_QUIT : RUN_PROJECT_MANAGER; _discard_changes(); } else { - tab_closing = next_scene; _menu_option_confirm(current_option, false); } } else { |