From cc0ff91df576b999eb37833b97293f2a3da2e490 Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 30 Oct 2016 15:35:44 +0100 Subject: [PATCH] Fixed: Add config variable if not present --- code/ryzom/tools/client/client_config_qt/src/config.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/ryzom/tools/client/client_config_qt/src/config.cpp b/code/ryzom/tools/client/client_config_qt/src/config.cpp index 15cd4fb9d..93e672845 100644 --- a/code/ryzom/tools/client/client_config_qt/src/config.cpp +++ b/code/ryzom/tools/client/client_config_qt/src/config.cpp @@ -288,6 +288,8 @@ void CConfig::setString( const char *key, const std::string &value ) } else { - nlwarning( "Couldn't find key %s in %s.", key, cf.getFilename().c_str() ); + NLMISC::CConfigFile::CVar var; + var.forceAsString(value); + cf.insertVar(key, var); } }