diff options
| author | Erik Kundiman <erik@megapahit.org> | 2026-09-04 22:44:53 +0800 |
|---|---|---|
| committer | Erik Kundiman <erik@megapahit.org> | 2026-09-04 22:44:53 +0800 |
| commit | f57d1d24e1a9947405587a6fe36d38ba42e097bd (patch) | |
| tree | 795c9ae0239f1d55f17534cf14868971528a6aed /indra/newview/llcommandlineparser.cpp | |
| parent | fd3946939064e4cec99cfcf250b1e58a94b3222b (diff) | |
| parent | 3a9706136a16caeeb85d9c76828835f1b266800f (diff) | |
Merge tag 'Second_Life_Release#3a970613-26.4' into 26.4
Diffstat (limited to 'indra/newview/llcommandlineparser.cpp')
| -rw-r--r-- | indra/newview/llcommandlineparser.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llcommandlineparser.cpp b/indra/newview/llcommandlineparser.cpp index 7e7d528199..7e1f85aff1 100644 --- a/indra/newview/llcommandlineparser.cpp +++ b/indra/newview/llcommandlineparser.cpp @@ -614,7 +614,14 @@ void setControlValueCB(const LLCommandLineParser::token_vector_t& value, else if (ctrl->isType(TYPE_LLSD)) { // Command-line LLSD should support a notation format string - ctrl->setValueFromNotation(onevalue(option, value), false); + // Note that LeapCommand is an TYPE_LLSD, but generaly is not a notation string, + // so keep a fallback to saving value directly. + // To preserve pre-setValueFromNotation, everything has a fallback. + std::string strvalue = onevalue(option, value); + if (!ctrl->setValueFromNotation(strvalue, false)) + { + ctrl->setValue(LLSD::String(strvalue), false); + } } else { |
