STORM-727 FIXED Don't disable Close and Back buttons in the Create Landmark panel, so you can go back if the landmark fails to load.
The bug was introduced in the fix of EXT-4700 (Creating a landmark brings up the Landmark sidepanel info twice). To avoid reopening the "Create Landmark" panel, its Back and Close buttons were disabled. However, the same fix removed the code for reopening the panel, so I can't see why we need to disable the buttons at all.meow-7.2.2
parent
ef27fe3c93
commit
960151e023
|
|
@ -330,8 +330,7 @@ BOOL LLPanelPlaces::postBuild()
|
|||
mPlaceProfileBackBtn = mPlaceProfile->getChild<LLButton>("back_btn");
|
||||
mPlaceProfileBackBtn->setClickedCallback(boost::bind(&LLPanelPlaces::onBackButtonClicked, this));
|
||||
|
||||
mLandmarkInfoBackBtn = mLandmarkInfo->getChild<LLButton>("back_btn");
|
||||
mLandmarkInfoBackBtn->setClickedCallback(boost::bind(&LLPanelPlaces::onBackButtonClicked, this));
|
||||
mLandmarkInfo->getChild<LLButton>("back_btn")->setClickedCallback(boost::bind(&LLPanelPlaces::onBackButtonClicked, this));
|
||||
|
||||
LLLineEditor* title_editor = mLandmarkInfo->getChild<LLLineEditor>("title_editor");
|
||||
title_editor->setKeystrokeCallback(boost::bind(&LLPanelPlaces::onEditButtonClicked, this), NULL);
|
||||
|
|
@ -384,12 +383,7 @@ void LLPanelPlaces::onOpen(const LLSD& key)
|
|||
|
||||
mLandmarkInfo->displayParcelInfo(LLUUID(), mPosGlobal);
|
||||
|
||||
// Disabling "Save", "Close" and "Back" buttons to prevent closing "Create Landmark"
|
||||
// panel before created landmark is loaded.
|
||||
// These buttons will be enabled when created landmark is added to inventory.
|
||||
mSaveBtn->setEnabled(FALSE);
|
||||
mCloseBtn->setEnabled(FALSE);
|
||||
mLandmarkInfoBackBtn->setEnabled(FALSE);
|
||||
}
|
||||
else if (mPlaceInfoType == LANDMARK_INFO_TYPE)
|
||||
{
|
||||
|
|
@ -497,8 +491,6 @@ void LLPanelPlaces::setItem(LLInventoryItem* item)
|
|||
|
||||
mEditBtn->setEnabled(is_landmark_editable);
|
||||
mSaveBtn->setEnabled(is_landmark_editable);
|
||||
mCloseBtn->setEnabled(TRUE);
|
||||
mLandmarkInfoBackBtn->setEnabled(TRUE);
|
||||
|
||||
if (is_landmark_editable)
|
||||
{
|
||||
|
|
@ -1137,13 +1129,6 @@ void LLPanelPlaces::updateVerbs()
|
|||
{
|
||||
mTeleportBtn->setEnabled(have_3d_pos);
|
||||
}
|
||||
|
||||
// Do not enable landmark info Back button when we are waiting
|
||||
// for newly created landmark to load.
|
||||
if (!is_create_landmark_visible)
|
||||
{
|
||||
mLandmarkInfoBackBtn->setEnabled(TRUE);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -116,7 +116,6 @@ private:
|
|||
LLToggleableMenu* mLandmarkMenu;
|
||||
|
||||
LLButton* mPlaceProfileBackBtn;
|
||||
LLButton* mLandmarkInfoBackBtn;
|
||||
LLButton* mTeleportBtn;
|
||||
LLButton* mShowOnMapBtn;
|
||||
LLButton* mEditBtn;
|
||||
|
|
|
|||
Loading…
Reference in New Issue