summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authordolphin <dolphin@lindenlab.com>2014-03-03 11:28:34 -0800
committerdolphin <dolphin@lindenlab.com>2014-03-03 11:28:34 -0800
commit96457e1affe33d75208cabf7529b53eee8e8105b (patch)
tree0e82fc32b243263e237669019b91c41dc6f7554e /indra
parent49f08d775d3644bb47d342f8e37dd15051aeaa62 (diff)
Disable the acquire xp button by default.
Mark the xp profile dirty when changing the group
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llfloaterexperienceprofile.cpp3
-rw-r--r--indra/newview/llfloaterexperiences.cpp1
2 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llfloaterexperienceprofile.cpp b/indra/newview/llfloaterexperienceprofile.cpp
index fd0f7aee1d..e5574be4f0 100644
--- a/indra/newview/llfloaterexperienceprofile.cpp
+++ b/indra/newview/llfloaterexperienceprofile.cpp
@@ -508,7 +508,7 @@ void LLFloaterExperienceProfile::refreshExperience( const LLSD& experience )
setEditGroup(id);
- getChild<LLButton>(BTN_SET_GROUP)->setEnabled(experience[LLExperienceCache::AGENT_ID].asUUID() == gAgent->getID());
+ getChild<LLButton>(BTN_SET_GROUP)->setEnabled(experience[LLExperienceCache::AGENT_ID].asUUID() == gAgent.getID());
LLCheckBoxCtrl* enable = getChild<LLCheckBoxCtrl>(EDIT BTN_ENABLE);
S32 properties = mExperienceDetails[LLExperienceCache::PROPERTIES].asInteger();
@@ -947,4 +947,5 @@ void LLFloaterExperienceProfile::setEditGroup( LLUUID group_id )
std::string value = LLSLURL("group", group_id, "inspect").getSLURLString();
child->setText(value);
mPackage[LLExperienceCache::GROUP_ID] = group_id;
+ onFieldChanged();
}
diff --git a/indra/newview/llfloaterexperiences.cpp b/indra/newview/llfloaterexperiences.cpp
index 956afe15c3..f958a988dc 100644
--- a/indra/newview/llfloaterexperiences.cpp
+++ b/indra/newview/llfloaterexperiences.cpp
@@ -111,6 +111,7 @@ BOOL LLFloaterExperiences::postBuild()
addTab("Contrib_Experiences_Tab", false);
LLPanelExperiences* owned = addTab("Owned_Experiences_Tab", false);
owned->setButtonAction("acquire", boost::bind(&LLFloaterExperiences::sendPurchaseRequest, this));
+ owned->enableButton(false);
#if SHOW_RECENT_TAB
addTab("Recent_Experiences_Tab", false);
#endif //SHOW_RECENT_TAB