diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2015-12-14 22:36:53 +0100 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2015-12-14 22:36:53 +0100 |
commit | 577bbcc6b30efb8df1c9f9b670a7ddfe0085ce91 (patch) | |
tree | fe87c49682ca5345aa0119ad23dec5cf17f31071 /tools/editor | |
parent | fa085a9c2ca1535a135ed934d656636ef7f1d58f (diff) |
Forbid renaming input presets
Diffstat (limited to 'tools/editor')
-rw-r--r-- | tools/editor/project_settings.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/editor/project_settings.cpp b/tools/editor/project_settings.cpp index 68fb4116fe..2ca15449aa 100644 --- a/tools/editor/project_settings.cpp +++ b/tools/editor/project_settings.cpp @@ -427,7 +427,8 @@ void ProjectSettings::_update_actions() { item->set_cell_mode(0,TreeItem::CELL_MODE_CHECK); item->set_text(0,name); item->add_button(0,get_icon("Add","EditorIcons"),1); - item->add_button(0,get_icon("Rename","EditorIcons"),2); + if (!Globals::get_singleton()->get_input_presets().find(pi.name)) + item->add_button(0,get_icon("Rename","EditorIcons"),2); item->add_button(0,get_icon("Remove","EditorIcons"),3); item->set_custom_bg_color(0,get_color("prop_subsection","Editor")); item->set_editable(0,true); |