diff options
author | robfram <robfram@gmail.com> | 2018-03-12 21:28:41 +0100 |
---|---|---|
committer | robfram <robfram@gmail.com> | 2018-03-12 21:28:41 +0100 |
commit | ea94a8259624a1915fa4b92682755e28f2bb6af5 (patch) | |
tree | 8e64a11a63692f3fb0009a749a23f13cb737c055 /core | |
parent | eceba5aa6a36521c878cf976845123e820d27161 (diff) |
Fix non working action names containing whitespaces
Now the action name is quoted if it contains spaces. Also, quotation
mark (") is added to the forbidden character list for action names, as
it was also a bug.
Fix #17322
Diffstat (limited to 'core')
-rw-r--r-- | core/project_settings.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/project_settings.cpp b/core/project_settings.cpp index 427fa77e62..3eb8ad7bf5 100644 --- a/core/project_settings.cpp +++ b/core/project_settings.cpp @@ -692,7 +692,10 @@ Error ProjectSettings::_save_settings_text(const String &p_file, const Map<Strin String vstr; VariantWriter::write_to_string(value, vstr); - file->store_string(F->get() + "=" + vstr + "\n"); + if (F->get().find(" ") != -1) + file->store_string(F->get().quote() + "=" + vstr + "\n"); + else + file->store_string(F->get() + "=" + vstr + "\n"); } } |