diff options
author | Loren Shih <seraph@lindenlab.com> | 2009-12-16 15:07:50 -0500 |
---|---|---|
committer | Loren Shih <seraph@lindenlab.com> | 2009-12-16 15:07:50 -0500 |
commit | 10de7713165bb69d9bbc082c6072e3ef8f7d7b8b (patch) | |
tree | 2fabb1669ce19f597956c651d37c48b4af011324 /indra/newview/llnavigationbar.cpp | |
parent | 0c0cb6fd79d12016b32bb74ce0e9d2c656143902 (diff) | |
parent | fdf9f9d779c019c68528b4de2bb5776806b0dec4 (diff) |
product engine -> viewer2.0 merge
Diffstat (limited to 'indra/newview/llnavigationbar.cpp')
-rw-r--r-- | indra/newview/llnavigationbar.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/newview/llnavigationbar.cpp b/indra/newview/llnavigationbar.cpp index cdab3b2310..6210151d1b 100644 --- a/indra/newview/llnavigationbar.cpp +++ b/indra/newview/llnavigationbar.cpp @@ -261,9 +261,14 @@ BOOL LLNavigationBar::postBuild() void LLNavigationBar::setVisible(BOOL visible) { // change visibility of grandparent layout_panel to animate in and out - if (getParent() && getParent()->getParent()) + if (getParent()) { - getParent()->getParent()->setVisible(visible); + //to avoid some mysterious bugs like EXT-3352, at least try to log an incorrect parent to ping about a problem. + if(getParent()->getName() != "nav_bar_container") + { + LL_WARNS("LLNavigationBar")<<"NavigationBar has an unknown name of the parent: "<<getParent()->getName()<< LL_ENDL; + } + getParent()->setVisible(visible); } } |