diff options
author | McCabe Maxsted | 2009-06-05 18:30:09 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-06-05 18:30:09 -0700 |
commit | ab324d7f6a9672d1f27481d9c38f9e7dae95be5e (patch) | |
tree | cfd49a8b5cbc4b5628a9f3bc25cc2ee51916d09b /linden/indra/newview/llinventorybridge.cpp | |
parent | Menu bar now only changes color for Aditi (diff) | |
parent | Merge branch 'mccabe/next' into next-1.1 (diff) | |
download | meta-impy-ab324d7f6a9672d1f27481d9c38f9e7dae95be5e.zip meta-impy-ab324d7f6a9672d1f27481d9c38f9e7dae95be5e.tar.gz meta-impy-ab324d7f6a9672d1f27481d9c38f9e7dae95be5e.tar.bz2 meta-impy-ab324d7f6a9672d1f27481d9c38f9e7dae95be5e.tar.xz |
Merged in jacek/next
Diffstat (limited to 'linden/indra/newview/llinventorybridge.cpp')
-rw-r--r-- | linden/indra/newview/llinventorybridge.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/linden/indra/newview/llinventorybridge.cpp b/linden/indra/newview/llinventorybridge.cpp index 34277f7..7af8c89 100644 --- a/linden/indra/newview/llinventorybridge.cpp +++ b/linden/indra/newview/llinventorybridge.cpp | |||
@@ -758,7 +758,7 @@ void LLItemBridge::performAction(LLFolderView* folder, LLInventoryModel* model, | |||
758 | } | 758 | } |
759 | else if ("restoreToWorld" == action) | 759 | else if ("restoreToWorld" == action) |
760 | { | 760 | { |
761 | restoreToWorld(); | 761 | restoreToWorldConfirm(); |
762 | } | 762 | } |
763 | else if ("restore" == action) | 763 | else if ("restore" == action) |
764 | { | 764 | { |
@@ -816,6 +816,24 @@ void LLItemBridge::restoreItem() | |||
816 | } | 816 | } |
817 | } | 817 | } |
818 | 818 | ||
819 | |||
820 | // virtual | ||
821 | void LLItemBridge::restoreToWorldConfirm() | ||
822 | { | ||
823 | gViewerWindow->alertXml("ConfirmRestoreToWorld", LLItemBridge::restoreToWorldCallback, (void *)this); | ||
824 | } | ||
825 | |||
826 | // static | ||
827 | void LLItemBridge::restoreToWorldCallback(S32 option, void *userdata) | ||
828 | { | ||
829 | if( option == 0 ) | ||
830 | { | ||
831 | // They confirmed it. Here we go! | ||
832 | ((LLItemBridge *) userdata)->restoreToWorld(); | ||
833 | } | ||
834 | } | ||
835 | |||
836 | // virtual | ||
819 | void LLItemBridge::restoreToWorld() | 837 | void LLItemBridge::restoreToWorld() |
820 | { | 838 | { |
821 | LLViewerInventoryItem* itemp = (LLViewerInventoryItem*)getItem(); | 839 | LLViewerInventoryItem* itemp = (LLViewerInventoryItem*)getItem(); |
@@ -3421,6 +3439,7 @@ void LLObjectBridge::buildContextMenu(LLMenuGL& menu, U32 flags) | |||
3421 | items.push_back(std::string("Object Wear")); | 3439 | items.push_back(std::string("Object Wear")); |
3422 | items.push_back(std::string("Attach To")); | 3440 | items.push_back(std::string("Attach To")); |
3423 | items.push_back(std::string("Attach To HUD")); | 3441 | items.push_back(std::string("Attach To HUD")); |
3442 | items.push_back(std::string("RestoreToWorld Separator")); | ||
3424 | items.push_back(std::string("Restore to Last Position")); | 3443 | items.push_back(std::string("Restore to Last Position")); |
3425 | 3444 | ||
3426 | LLMenuGL* attach_menu = menu.getChildMenuByName("Attach To", TRUE); | 3445 | LLMenuGL* attach_menu = menu.getChildMenuByName("Attach To", TRUE); |