diff options
Diffstat (limited to 'linden/indra/newview/llfloaterpostcard.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterpostcard.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/linden/indra/newview/llfloaterpostcard.cpp b/linden/indra/newview/llfloaterpostcard.cpp index 41b6515..aa9b2fb 100644 --- a/linden/indra/newview/llfloaterpostcard.cpp +++ b/linden/indra/newview/llfloaterpostcard.cpp | |||
@@ -357,8 +357,12 @@ bool LLFloaterPostcard::missingSubjMsgAlertCallback(const LLSD& notification, co | |||
357 | if((childGetValue("subject_form").asString()).empty()) | 357 | if((childGetValue("subject_form").asString()).empty()) |
358 | { | 358 | { |
359 | // Stuff the subject back into the form. | 359 | // Stuff the subject back into the form. |
360 | childSetTextArg("default_subject", "[GRID_NAME]", gHippoGridManager->getConnectedGrid()->getGridName()); | 360 | LLStringUtil::format_map_t targs; |
361 | childSetValue("subject_form", getString("default_subject")); | 361 | targs["[GRID_NAME]"] = gHippoGridManager->getConnectedGrid()->getGridName(); |
362 | std::string subj = getString("default_subject"); | ||
363 | LLStringUtil::format(subj, targs); | ||
364 | |||
365 | childSetValue("subject_form", subj); | ||
362 | } | 366 | } |
363 | 367 | ||
364 | if(!mHasFirstMsgFocus) | 368 | if(!mHasFirstMsgFocus) |