From 141e389c3f80dcb71bbf86c67b9d2ea83652fa0c Mon Sep 17 00:00:00 2001 From: robfram Date: Mon, 12 Mar 2018 21:28:41 +0100 Subject: 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 (cherry picked from commit ea94a8259624a1915fa4b92682755e28f2bb6af5) --- core/project_settings.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core/project_settings.cpp') diff --git a/core/project_settings.cpp b/core/project_settings.cpp index 427fa77e6..3eb8ad7bf 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 Mapstore_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"); } } -- cgit v1.2.3-70-g09d2