1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Fix editor layouts broken after 9a7ff65

This commit is contained in:
Ignacio Etcheverry
2015-12-14 16:44:15 +01:00
parent 27e4c87869
commit 6e4b1ff838

View File

@@ -4651,8 +4651,7 @@ void EditorNode::_layout_menu_option(int p_id) {
return; //no config return; //no config
} }
int idx=editor_layouts->get_item_index(p_id); _load_docks_from_config(config, editor_layouts->get_item_text(p_id));
_load_docks_from_config(config, editor_layouts->get_item_text(idx));
_save_docks(); _save_docks();
} }