diff options
author | Poommetee Ketson <poommetee@protonmail.com> | 2018-03-11 21:33:21 +0700 |
---|---|---|
committer | Poommetee Ketson <poommetee@protonmail.com> | 2018-03-11 21:33:21 +0700 |
commit | e12e6cacdb823caf4227f63f4bd175a593918813 (patch) | |
tree | 05ba76cab035a8ef55613819ffd8ea094ea629a6 | |
parent | eceba5aa6a36521c878cf976845123e820d27161 (diff) |
EditorNode: fix clicking ok keeps trying to save
-rw-r--r-- | editor/editor_node.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 8132575479..c7d1916b6b 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -597,6 +597,7 @@ void EditorNode::save_resource_in_path(const Ref<Resource> &p_resource, const St Error err = ResourceSaver::save(path, p_resource, flg | ResourceSaver::FLAG_REPLACE_SUBRESOURCE_PATHS); if (err != OK) { + current_option = -1; accept->set_text(TTR("Error saving resource!")); accept->popup_centered_minsize(); return; @@ -1194,6 +1195,7 @@ void EditorNode::_dialog_action(String p_file) { Error err = ResourceSaver::save(p_file, ml); if (err) { + current_option = -1; accept->get_ok()->set_text(TTR("I see..")); accept->set_text(TTR("Error saving MeshLibrary!")); accept->popup_centered_minsize(); @@ -1228,6 +1230,7 @@ void EditorNode::_dialog_action(String p_file) { Error err = ResourceSaver::save(p_file, ml); if (err) { + current_option = -1; accept->get_ok()->set_text(TTR("I see..")); accept->set_text(TTR("Error saving TileSet!")); accept->popup_centered_minsize(); |