diff options
Diffstat (limited to 'linden/indra/newview/llinventorybridge.cpp')
-rw-r--r-- | linden/indra/newview/llinventorybridge.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/linden/indra/newview/llinventorybridge.cpp b/linden/indra/newview/llinventorybridge.cpp index 34277f7..65922cc 100644 --- a/linden/indra/newview/llinventorybridge.cpp +++ b/linden/indra/newview/llinventorybridge.cpp | |||
@@ -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(); |