summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandreykproductengine <akleshchev@productengine.com>2015-11-24 20:14:14 +0200
committerandreykproductengine <akleshchev@productengine.com>2015-11-24 20:14:14 +0200
commit16accb650c266928d07be1aee714acfaa878efff (patch)
treefd9e945cc6ea01a1664494225ac12ea7507d6848
parentd47870a9c1f37d9bea88e1ea70fc0b8c78633d1d (diff)
SL-192 Edit Experience Profile shows up once an Exp is acquired
-rw-r--r--indra/newview/llfloaterexperienceprofile.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/indra/newview/llfloaterexperienceprofile.cpp b/indra/newview/llfloaterexperienceprofile.cpp
index 4d60d01922..fd226d656c 100644
--- a/indra/newview/llfloaterexperienceprofile.cpp
+++ b/indra/newview/llfloaterexperienceprofile.cpp
@@ -337,7 +337,13 @@ BOOL LLFloaterExperienceProfile::postBuild()
LLEventPumps::instance().obtain("experience_permission").listen(mExperienceId.asString()+"-profile",
boost::bind(&LLFloaterExperienceProfile::experiencePermission, getDerivedHandle<LLFloaterExperienceProfile>(this), _1));
-
+
+ if (mPostEdit && mExperienceId.notNull())
+ {
+ mPostEdit = false;
+ changeToEdit();
+ }
+
return TRUE;
}
@@ -621,12 +627,6 @@ void LLFloaterExperienceProfile::refreshExperience( const LLSD& experience )
mDirty=false;
mForceClose = false;
getChild<LLButton>(BTN_SAVE)->setEnabled(mDirty);
-
- if (mPostEdit)
- {
- mPostEdit = false;
- changeToEdit();
- }
}
void LLFloaterExperienceProfile::setPreferences( const LLSD& content )