diff options
author | Oz Linden <oz@lindenlab.com> | 2011-07-08 20:16:35 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-07-08 20:16:35 -0400 |
commit | 093fdcfcd3debd74dc773bf52faa07ea9f5f8b31 (patch) | |
tree | 9b3a0f7e37ef731cb9d35ef4e87c17a4c3c4b255 /indra/newview/llviewerhelp.cpp | |
parent | 187bc5211437718016a22e60c7b5ed29823c8510 (diff) | |
parent | 255fc0401ebde80cfde88995a18fc77a36e3479b (diff) |
merge changes for storm-1489
Diffstat (limited to 'indra/newview/llviewerhelp.cpp')
-rw-r--r-- | indra/newview/llviewerhelp.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/indra/newview/llviewerhelp.cpp b/indra/newview/llviewerhelp.cpp index 9fe8c142b9..3a3d4f3881 100644 --- a/indra/newview/llviewerhelp.cpp +++ b/indra/newview/llviewerhelp.cpp @@ -101,8 +101,9 @@ void LLViewerHelp::showTopic(const std::string &topic) // work out the URL for this topic and display it showHelp(); + std::string helpURL = LLViewerHelpUtil::buildHelpURL( help_topic ); - setRawURL( helpURL ); + setRawURL(helpURL); } std::string LLViewerHelp::defaultTopic() @@ -148,18 +149,7 @@ std::string LLViewerHelp::getTopicFromFocus() // static void LLViewerHelp::showHelp() { - LLFloaterHelpBrowser* helpbrowser = dynamic_cast<LLFloaterHelpBrowser*>(LLFloaterReg::getInstance("help_browser")); - if (helpbrowser) - { - BOOL visible = TRUE; - BOOL take_focus = TRUE; - helpbrowser->setVisible(visible); - helpbrowser->setFrontmost(take_focus); - } - else - { - llwarns << "Eep, help_browser floater not found" << llendl; - } + LLFloaterReg::showInstance("help_browser"); } // static |