summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterexperienceprofile.cpp
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
commit17158103dd3a0cf87c7d30bd5c453cf5d1fa7bad (patch)
treebf9e74956eba20c26b1d9d63cc9d045a68f0730d /indra/newview/llfloaterexperienceprofile.cpp
parent749a0266bae75aa5c0dab3b207719d6b08675b83 (diff)
SL-192 Edit Experience Profile shows up once an Exp is acquired
Diffstat (limited to 'indra/newview/llfloaterexperienceprofile.cpp')
-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 )