summaryrefslogtreecommitdiff
path: root/indra/llui/lluictrl.cpp
diff options
context:
space:
mode:
authorVadim Savchuk <vsavchuk@productengine.com>2010-01-14 14:27:25 +0200
committerVadim Savchuk <vsavchuk@productengine.com>2010-01-14 14:27:25 +0200
commitb278de94c9afe3a5b838b57bd380fd28c04b29f1 (patch)
treeb5da76ed707dff7c93d2f7ad7cf4cf47ec177db8 /indra/llui/lluictrl.cpp
parente727800829be2ecf236b726b1ec7693a3adad908 (diff)
parent0556c2c047e38d9b5e18cd31b219764c3dc89aa4 (diff)
Merge from default branch.
--HG-- branch : product-engine
Diffstat (limited to 'indra/llui/lluictrl.cpp')
-rw-r--r--indra/llui/lluictrl.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llui/lluictrl.cpp b/indra/llui/lluictrl.cpp
index 6044908ca7..f016c0af89 100644
--- a/indra/llui/lluictrl.cpp
+++ b/indra/llui/lluictrl.cpp
@@ -876,6 +876,14 @@ bool LLUICtrl::findHelpTopic(std::string& help_topic_out)
return true; // success (tab)
}
+ // does the panel have a sub-panel with a help topic?
+ LLPanel *subpanel = panel->childGetVisiblePanelWithHelp();
+ if (subpanel)
+ {
+ help_topic_out = subpanel->getHelpTopic();
+ return true; // success (subpanel)
+ }
+
// otherwise, does the panel have a help topic itself?
if (!panel->getHelpTopic().empty())
{