diff options
author | richard <none@none> | 2010-01-15 11:25:10 -0800 |
---|---|---|
committer | richard <none@none> | 2010-01-15 11:25:10 -0800 |
commit | c9cf84913d306103da51dc83e5932ff3fb308d32 (patch) | |
tree | 9ecb21f9376f29264db9fce33310ffa3a66fc8ab /indra/llui/lluictrl.cpp | |
parent | aaef23d7eb1c17ea744fe5737af91b1ed228d416 (diff) | |
parent | 1d1f51db971271c42d68fa12032d6f85a7e35bd8 (diff) |
merge
Diffstat (limited to 'indra/llui/lluictrl.cpp')
-rw-r--r-- | indra/llui/lluictrl.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/indra/llui/lluictrl.cpp b/indra/llui/lluictrl.cpp index f016c0af89..3ade46d367 100644 --- a/indra/llui/lluictrl.cpp +++ b/indra/llui/lluictrl.cpp @@ -868,14 +868,6 @@ bool LLUICtrl::findHelpTopic(std::string& help_topic_out) if (panel) { - // does the panel have an active tab with a help topic? - LLPanel *tab = panel->childGetVisibleTabWithHelp(); - if (tab) - { - help_topic_out = tab->getHelpTopic(); - return true; // success (tab) - } - // does the panel have a sub-panel with a help topic? LLPanel *subpanel = panel->childGetVisiblePanelWithHelp(); if (subpanel) @@ -884,6 +876,14 @@ bool LLUICtrl::findHelpTopic(std::string& help_topic_out) return true; // success (subpanel) } + // does the panel have an active tab with a help topic? + LLPanel *tab = panel->childGetVisibleTabWithHelp(); + if (tab) + { + help_topic_out = tab->getHelpTopic(); + return true; // success (tab) + } + // otherwise, does the panel have a help topic itself? if (!panel->getHelpTopic().empty()) { |