diff options
author | Mike Antipov <mantipov@productengine.com> | 2010-01-26 09:36:40 +0200 |
---|---|---|
committer | Mike Antipov <mantipov@productengine.com> | 2010-01-26 09:36:40 +0200 |
commit | 04729c1cd581e985247e5537fdcd46d78e5a9f1c (patch) | |
tree | c8368ccb8e00e6128c9ef453a7f106ef433d0abc /indra/newview/llviewerhelp.cpp | |
parent | 5d7497aab21f9cfcd8b86c73c27dce33e8409841 (diff) | |
parent | fbf605ea321ee29afad63a4afe47f65584d67eea (diff) |
Merge with default branch
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llviewerhelp.cpp')
-rw-r--r-- | indra/newview/llviewerhelp.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/indra/newview/llviewerhelp.cpp b/indra/newview/llviewerhelp.cpp index 5af79b4fd3..7c491ad154 100644 --- a/indra/newview/llviewerhelp.cpp +++ b/indra/newview/llviewerhelp.cpp @@ -65,18 +65,16 @@ void LLViewerHelp::showTopic(const std::string &topic) help_topic = defaultTopic(); } - // f1 help topic means: if user not logged in yet, show the - // pre-login topic, otherwise show help for the focused item + // f1 help topic means: if the user is not logged in yet, show + // the pre-login topic instead of the default fallback topic, + // otherwise show help for the focused item if (help_topic == f1HelpTopic()) { - if (! LLLoginInstance::getInstance()->authSuccess()) + help_topic = getTopicFromFocus(); + if (help_topic == defaultTopic() && ! LLLoginInstance::getInstance()->authSuccess()) { help_topic = preLoginTopic(); } - else - { - help_topic = getTopicFromFocus(); - } } // work out the URL for this topic and display it |