From 4b798fce1dbf569c9ec2d868e71e9f53419de1d7 Mon Sep 17 00:00:00 2001 From: Tonya Souther Date: Thu, 20 Jan 2011 10:53:41 -0600 Subject: [PATCH] Make parcel info button in top bar open About Land instead of the Places sidebar panel. --- indra/newview/llpaneltopinfobar.cpp | 4 +++- indra/newview/llstatusbar.cpp | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/indra/newview/llpaneltopinfobar.cpp b/indra/newview/llpaneltopinfobar.cpp index a9ca7314ce..ac4140b04b 100644 --- a/indra/newview/llpaneltopinfobar.cpp +++ b/indra/newview/llpaneltopinfobar.cpp @@ -31,6 +31,7 @@ #include "llagent.h" #include "llagentui.h" #include "llclipboard.h" +#include "llfloaterreg.h" #include "lllandmarkactions.h" #include "lllocationinputctrl.h" #include "llnotificationsutil.h" @@ -439,5 +440,6 @@ void LLPanelTopInfoBar::onContextMenuItemClicked(const LLSD::String& item) void LLPanelTopInfoBar::onInfoButtonClicked() { - LLSideTray::getInstance()->showPanel("panel_places", LLSD().with("type", "agent")); + //LLSideTray::getInstance()->showPanel("panel_places", LLSD().with("type", "agent")); + LLFloaterReg::showInstance("about_land"); } diff --git a/indra/newview/llstatusbar.cpp b/indra/newview/llstatusbar.cpp index 43be336849..f1a4c5d747 100644 --- a/indra/newview/llstatusbar.cpp +++ b/indra/newview/llstatusbar.cpp @@ -897,5 +897,6 @@ void LLStatusBar::onContextMenuItemClicked(const LLSD::String& item) void LLStatusBar::onInfoButtonClicked() { - LLSideTray::getInstance()->showPanel("panel_places", LLSD().with("type", "agent")); + //LLSideTray::getInstance()->showPanel("panel_places", LLSD().with("type", "agent")); + LLFloaterReg::showInstance("about_land"); }