summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelplacestab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llpanelplacestab.cpp')
-rw-r--r--indra/newview/llpanelplacestab.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llpanelplacestab.cpp b/indra/newview/llpanelplacestab.cpp
index e5b1f04064..7c0a7b0cc4 100644
--- a/indra/newview/llpanelplacestab.cpp
+++ b/indra/newview/llpanelplacestab.cpp
@@ -41,6 +41,14 @@
#include "llslurl.h"
#include "llworldmap.h"
+bool LLPanelPlacesTab::isTabVisible()
+{
+ LLUICtrl* parent = getParentUICtrl();
+ if (!parent) return false;
+ if (!parent->getVisible()) return false;
+ return true;
+}
+
void LLPanelPlacesTab::setPanelPlacesButtons(LLPanelPlaces* panel)
{
//mShareBtn = panel->getChild<LLButton>("share_btn");