diff --git a/indra/newview/llfloatervfs.cpp b/indra/newview/llfloatervfs.cpp index b7e75e89c..657680700 100644 --- a/indra/newview/llfloatervfs.cpp +++ b/indra/newview/llfloatervfs.cpp @@ -3,6 +3,7 @@ #include "llfloatervfs.h" #include "lluictrlfactory.h" #include "llscrolllistctrl.h" +#include "llcheckboxctrl.h" #include "llfilepicker.h" #include "lllocalinventory.h" #include "llviewerwindow.h" @@ -270,6 +271,10 @@ void LLFloaterVFS::onClickAdd(void* user_data) file.mType = asset_type; file.mName = gDirUtilp->getBaseFileName(file_name, true); floaterp->add(file); + if(floaterp->getChild("create_pretend_item")->get()) + { + LLLocalInventory::addItem(file.mName, (int)file.mType, file.mID, true); + } } } // static diff --git a/indra/newview/skins/default/xui/en-us/floater_vfs.xml b/indra/newview/skins/default/xui/en-us/floater_vfs.xml index 5dfb892de..e71544b6b 100644 --- a/indra/newview/skins/default/xui/en-us/floater_vfs.xml +++ b/indra/newview/skins/default/xui/en-us/floater_vfs.xml @@ -1,13 +1,14 @@