FIRE-15489: Add confirmation when unlinking objects
parent
3f38e58fe3
commit
2195052d1a
|
|
@ -369,6 +369,22 @@ void LLFloaterTools::changePrecision(S32 decimal_precision)
|
|||
mPanelFace->changePrecision(decimal_precision);
|
||||
}
|
||||
|
||||
// <FS:Ansariel> FIRE-15489: Confirm before unlinking objects
|
||||
void cb_confirm_unlink_objects(const LLSD& notification, const LLSD& response)
|
||||
{
|
||||
S32 option = LLNotificationsUtil::getSelectedOption(notification, response);
|
||||
if (option == 0)
|
||||
{
|
||||
LLSelectMgr::getInstance()->unlinkObjects();
|
||||
}
|
||||
}
|
||||
|
||||
void confirm_unlink_objects()
|
||||
{
|
||||
LLNotificationsUtil::add("ConfirmUnlinkObjects", LLSD(), LLSD(), boost::bind(&cb_confirm_unlink_objects, _1, _2));
|
||||
}
|
||||
// </FS:Ansariel>
|
||||
|
||||
// Create the popupview with a dummy center. It will be moved into place
|
||||
// during LLViewerWindow's per-frame hover processing.
|
||||
LLFloaterTools::LLFloaterTools(const LLSD& key)
|
||||
|
|
@ -469,7 +485,10 @@ LLFloaterTools::LLFloaterTools(const LLSD& key)
|
|||
mCommitCallbackRegistrar.add("BuildTool.EditMedia", boost::bind(&LLFloaterTools::onClickBtnEditMedia,this));
|
||||
|
||||
mCommitCallbackRegistrar.add("BuildTool.LinkObjects", boost::bind(&LLSelectMgr::linkObjects, LLSelectMgr::getInstance()));
|
||||
mCommitCallbackRegistrar.add("BuildTool.UnlinkObjects", boost::bind(&LLSelectMgr::unlinkObjects, LLSelectMgr::getInstance()));
|
||||
// <FS:Ansariel> FIRE-15489: Confirm before unlinking objects
|
||||
//mCommitCallbackRegistrar.add("BuildTool.UnlinkObjects", boost::bind(&LLSelectMgr::unlinkObjects, LLSelectMgr::getInstance()));
|
||||
mCommitCallbackRegistrar.add("BuildTool.UnlinkObjects", boost::bind(&confirm_unlink_objects));
|
||||
// </FS:Ansariel>
|
||||
|
||||
// <FS>
|
||||
mCommitCallbackRegistrar.add("BuildTool.CopyKeys", boost::bind(&LLFloaterTools::onClickBtnCopyKeys,this));
|
||||
|
|
|
|||
|
|
@ -10680,7 +10680,11 @@ void initialize_menus()
|
|||
view_listener_t::addMenu(new LLToolsUseSelectionForGrid(), "Tools.UseSelectionForGrid");
|
||||
view_listener_t::addMenu(new LLToolsSelectNextPart(), "Tools.SelectNextPart");
|
||||
commit.add("Tools.Link", boost::bind(&LLSelectMgr::linkObjects, LLSelectMgr::getInstance()));
|
||||
commit.add("Tools.Unlink", boost::bind(&LLSelectMgr::unlinkObjects, LLSelectMgr::getInstance()));
|
||||
// <FS:Ansariel> FIRE-15489: Confirm before unlinking objects
|
||||
//commit.add("Tools.Unlink", boost::bind(&LLSelectMgr::unlinkObjects, LLSelectMgr::getInstance()));
|
||||
void confirm_unlink_objects();
|
||||
commit.add("Tools.Unlink", boost::bind(&confirm_unlink_objects));
|
||||
// </FS:Ansariel>
|
||||
view_listener_t::addMenu(new LLToolsStopAllAnimations(), "Tools.StopAllAnimations");
|
||||
view_listener_t::addMenu(new LLToolsReleaseKeys(), "Tools.ReleaseKeys");
|
||||
view_listener_t::addMenu(new LLToolsEnableReleaseKeys(), "Tools.EnableReleaseKeys");
|
||||
|
|
|
|||
|
|
@ -2220,7 +2220,7 @@ Inventarobjekt(e) verschieben?
|
|||
</notification>
|
||||
<notification name="PayConfirmation">
|
||||
Bestätigen Sie, dass sie L$[AMOUNT] an [TARGET] zahlen möchten.
|
||||
<usetemplate ignoretext="Bestätigen bevor Zahlungen getätigt werden (Summen über L$200)" name="okcancelignore" notext="Abbrechen" yestext="Bezahlen"/>
|
||||
<usetemplate ignoretext="Bestätigen, bevor Zahlungen getätigt werden (Summen über L$200)" name="okcancelignore" notext="Abbrechen" yestext="Bezahlen"/>
|
||||
</notification>
|
||||
<notification name="OpenObjectCannotCopy">
|
||||
Sie haben keine Berechtigung zum Kopieren von Elementen in diesem Objekt.
|
||||
|
|
@ -4886,4 +4886,8 @@ Welche Bezeichnung soll für die Region
|
|||
<button name="Cancel" text="Abbrechen"/>
|
||||
</form>
|
||||
</notification>
|
||||
<notification name="ConfirmUnlinkObjects">
|
||||
Sollen das ausgewählte Objekt wirklich getrennt werden?
|
||||
<usetemplate ignoretext="Bestätigen, bevor ich ein Objekt trenne" name="okcancelignore" notext="Abbrechen" yestext="Trennen"/>
|
||||
</notification>
|
||||
</notifications>
|
||||
|
|
|
|||
|
|
@ -12023,4 +12023,17 @@ the region "[REGION]"?
|
|||
text="Cancel"/>
|
||||
</form>
|
||||
</notification>
|
||||
|
||||
<notification
|
||||
icon="alertmodal.tga"
|
||||
name="ConfirmUnlinkObjects"
|
||||
type="alertmodal">
|
||||
Do you really want to unlink the selected object?
|
||||
<tag>confirm</tag>
|
||||
<usetemplate
|
||||
ignoretext="Confirm before I unlink an object"
|
||||
name="okcancelignore"
|
||||
notext="Cancel"
|
||||
yestext="Unlink"/>
|
||||
</notification>
|
||||
</notifications>
|
||||
|
|
|
|||
Loading…
Reference in New Issue