diff options
Diffstat (limited to 'linden/indra/newview/llcommandlineparser.cpp')
-rw-r--r-- | linden/indra/newview/llcommandlineparser.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/newview/llcommandlineparser.cpp b/linden/indra/newview/llcommandlineparser.cpp index dc6a1e2..d1cf9a7 100644 --- a/linden/indra/newview/llcommandlineparser.cpp +++ b/linden/indra/newview/llcommandlineparser.cpp | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2007&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2007&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2007-2008, Linden Research, Inc. | 7 | * Copyright (c) 2007-2009, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -416,11 +416,6 @@ void setControlValueCB(const LLCommandLineParser::token_vector_t& value, | |||
416 | const std::string& opt_name, | 416 | const std::string& opt_name, |
417 | LLControlGroup* ctrlGroup) | 417 | LLControlGroup* ctrlGroup) |
418 | { | 418 | { |
419 | if(value.size() > 1) | ||
420 | { | ||
421 | llwarns << "Ignoring extra tokens mapped to the setting: " << opt_name << "." << llendl; | ||
422 | } | ||
423 | |||
424 | // *FIX: Do sematic conversion here. | 419 | // *FIX: Do sematic conversion here. |
425 | // LLSD (ImplString) Is no good for doing string to type conversion for... | 420 | // LLSD (ImplString) Is no good for doing string to type conversion for... |
426 | // booleans | 421 | // booleans |
@@ -457,7 +452,7 @@ void setControlValueCB(const LLCommandLineParser::token_vector_t& value, | |||
457 | default: | 452 | default: |
458 | { | 453 | { |
459 | // For the default types, let llsd do the conversion. | 454 | // For the default types, let llsd do the conversion. |
460 | if(value.size() > 1) | 455 | if(value.size() > 1 && ctrl->isType(TYPE_LLSD)) |
461 | { | 456 | { |
462 | // Assume its an array... | 457 | // Assume its an array... |
463 | LLSD llsdArray; | 458 | LLSD llsdArray; |
@@ -472,6 +467,11 @@ void setControlValueCB(const LLCommandLineParser::token_vector_t& value, | |||
472 | } | 467 | } |
473 | else if(value.size() > 0) | 468 | else if(value.size() > 0) |
474 | { | 469 | { |
470 | if(value.size() > 1) | ||
471 | { | ||
472 | llwarns << "Ignoring extra tokens mapped to the setting: " << opt_name << "." << llendl; | ||
473 | } | ||
474 | |||
475 | LLSD llsdValue; | 475 | LLSD llsdValue; |
476 | llsdValue.assign(LLSD::String(value[0])); | 476 | llsdValue.assign(LLSD::String(value[0])); |
477 | ctrl->setValue(llsdValue, false); | 477 | ctrl->setValue(llsdValue, false); |