summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerwindow.cpp
diff options
context:
space:
mode:
authorRichard Nelson <richard@lindenlab.com>2009-10-14 01:17:21 +0000
committerRichard Nelson <richard@lindenlab.com>2009-10-14 01:17:21 +0000
commit09108591cd61bd84d3b5b661573e8df49cdbedb8 (patch)
treef8730a76e774fb7ae0e362a533bcf0a631ae7b7a /indra/newview/llviewerwindow.cpp
parent45ffaca4b39688a3cbe4e4fc6470d98d67047f83 (diff)
better heuristics for ShowXuiNames tooltips
reviewed by Brad
Diffstat (limited to 'indra/newview/llviewerwindow.cpp')
-rw-r--r--indra/newview/llviewerwindow.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp
index 874d76308a..3cc379821a 100644
--- a/indra/newview/llviewerwindow.cpp
+++ b/indra/newview/llviewerwindow.cpp
@@ -2605,12 +2605,17 @@ void LLViewerWindow::updateUI()
{
it.skipDescendants();
}
- // only report xui names for LLUICtrls, not the various container LLViews
- else if (dynamic_cast<LLUICtrl*>(viewp))
+ // only report xui names for LLUICtrls,
+ // and blacklist the various containers we don't care about
+ else if (dynamic_cast<LLUICtrl*>(viewp)
+ && viewp != gMenuHolder
+ && viewp != gFloaterView
+ && viewp != gNotifyBoxView
+ && viewp != gConsole)
{
- if (dynamic_cast<LLPanel*>(viewp))
+ if (dynamic_cast<LLFloater*>(viewp))
{
- // constrain search to descendants of this panel
+ // constrain search to descendants of this (frontmost) floater
// by resetting iterator
it = viewp->beginTreeDFS();
}