summaryrefslogtreecommitdiff
path: root/editor/editor_node.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-10-23 15:31:48 +0200
committerGitHub <noreply@github.com>2019-10-23 15:31:48 +0200
commit2d6cf9cc5650318be486f6a7b1f8ad5c74122419 (patch)
treeb84c16302bfaa4ac9625fad1d11c5063464e763a /editor/editor_node.cpp
parent1968f0129c12b1ae1085b8b57d16b2dd7cea34f4 (diff)
parentd62ab4ab104b3570106a092ba735a47a5e05e38f (diff)
Merge pull request #33009 from ebert83/fix_editor_save_layout
Fix layout saving error
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r--editor/editor_node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 9c377a6b1c..ae9adc66ae 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -1470,7 +1470,7 @@ void EditorNode::_dialog_action(String p_file) {
config.instance();
Error err = config->load(EditorSettings::get_singleton()->get_editor_layouts_config());
- if (err == ERR_CANT_OPEN) {
+ if (err == ERR_FILE_CANT_OPEN || err == ERR_FILE_NOT_FOUND) {
config.instance(); // new config
} else if (err != OK) {
show_warning(TTR("Error trying to save layout!"));