COMMIT STORM:

Fixes for Temp uploads so they show up as they should and are actually usable.

Signed-off-by: Beeks <HgDelirium@gmail.com>
This commit is contained in:
Beeks
2010-09-08 19:09:14 -04:00
parent 4638cfbc80
commit 973f53df5e
6 changed files with 58 additions and 54 deletions

View File

@@ -349,7 +349,7 @@ void LLFolderViewItem::refresh()
LLStringUtil::toUpper(searchable_label_desc); LLStringUtil::toUpper(searchable_label_desc);
LLStringUtil::toUpper(searchable_label_all); LLStringUtil::toUpper(searchable_label_all);
if (mSearchableLabel.compare(searchable_label) || if (mSearchableLabel.compare(searchable_label) ||
mSearchableLabelCreator.compare(searchable_label_creator) || mSearchableLabelCreator.compare(searchable_label_creator) ||
mSearchableLabelDesc.compare(searchable_label_desc) || mSearchableLabelDesc.compare(searchable_label_desc) ||
mSearchableLabelAll.compare(searchable_label_all)) mSearchableLabelAll.compare(searchable_label_all))
@@ -4746,7 +4746,7 @@ std::string::size_type LLInventoryFilter::getStringMatchOffset() const
BOOL LLInventoryFilter::isNotDefault() BOOL LLInventoryFilter::isNotDefault()
{ {
return mFilterOps.mFilterTypes != mDefaultFilterOps.mFilterTypes return mFilterOps.mFilterTypes != mDefaultFilterOps.mFilterTypes
|| mFilterSubString.size() || mFilterSubString.size()
|| mFilterWorn || mFilterWorn
|| mFilterOps.mPermissions != mDefaultFilterOps.mPermissions || mFilterOps.mPermissions != mDefaultFilterOps.mPermissions
|| mFilterOps.mMinDate != mDefaultFilterOps.mMinDate || mFilterOps.mMinDate != mDefaultFilterOps.mMinDate

View File

@@ -472,14 +472,6 @@ class LLDoCreate : public inventory_panel_listener_t
LLInventoryModel* model = mPtr->getModel(); LLInventoryModel* model = mPtr->getModel();
if(!model) return false; if(!model) return false;
std::string type = userdata.asString(); std::string type = userdata.asString();
// <edit>
if(type == "pretend")
{
LLFloaterNewLocalInventory* floater = new LLFloaterNewLocalInventory();
floater->center();
}
else
// </edit>
do_create(model, mPtr, type, LLFolderBridge::sSelf); do_create(model, mPtr, type, LLFolderBridge::sSelf);
return true; return true;
} }
@@ -492,6 +484,14 @@ class LLDoCreateFloater : public inventory_listener_t
LLInventoryModel* model = mPtr->getPanel()->getModel(); LLInventoryModel* model = mPtr->getPanel()->getModel();
if(!model) return false; if(!model) return false;
std::string type = userdata.asString(); std::string type = userdata.asString();
// <edit>
if(type == "pretend")
{
LLFloaterNewLocalInventory* floater = new LLFloaterNewLocalInventory();
floater->center();
}
else
// </edit>
do_create(model, mPtr->getPanel(), type); do_create(model, mPtr->getPanel(), type);
return true; return true;
} }

View File

@@ -53,7 +53,7 @@ LLUUID LLLocalInventory::addItem(std::string name, int type, LLUUID asset_id)
"", "",
LLSaleInfo::DEFAULT, LLSaleInfo::DEFAULT,
0, 0,
0); time_corrected());
addItem(item); addItem(item);
return item_id; return item_id;
} }
@@ -63,6 +63,7 @@ void LLLocalInventory::addItem(LLViewerInventoryItem* item)
//gInventory.addPretendItem(item); //gInventory.addPretendItem(item);
LLInventoryModel::update_map_t update; LLInventoryModel::update_map_t update;
++update[item->getParentUUID()]; ++update[item->getParentUUID()];
item->updateServer(TRUE);
gInventory.accountForUpdate(update); gInventory.accountForUpdate(update);
gInventory.updateItem(item); gInventory.updateItem(item);
gInventory.notifyObservers(); gInventory.notifyObservers();

View File

@@ -1256,12 +1256,15 @@ void temp_upload_callback(const LLUUID& uuid, void* user_data, S32 result, LLExt
item_id.generate(); item_id.generate();
LLPermissions* perms = new LLPermissions(); LLPermissions* perms = new LLPermissions();
perms->set(LLPermissions::DEFAULT); perms->set(LLPermissions::DEFAULT);
perms->setOwnerAndGroup(LLUUID::null, LLUUID::null, LLUUID::null, false); perms->setOwnerAndGroup(gAgentID, gAgentID, gAgentID, false);
perms->setMaskBase(0);
perms->setMaskEveryone(0);
perms->setMaskGroup(0); perms->setMaskBase(PERM_ALL);
perms->setMaskNext(0); perms->setMaskOwner(PERM_ALL);
perms->setMaskOwner(0); perms->setMaskEveryone(PERM_ALL);
perms->setMaskGroup(PERM_ALL);
perms->setMaskNext(PERM_ALL);
LLViewerInventoryItem* item = new LLViewerInventoryItem( LLViewerInventoryItem* item = new LLViewerInventoryItem(
item_id, item_id,
gLocalInventoryRoot, gLocalInventoryRoot,
@@ -1273,7 +1276,7 @@ void temp_upload_callback(const LLUUID& uuid, void* user_data, S32 result, LLExt
data->mAssetInfo.getDescription(), data->mAssetInfo.getDescription(),
LLSaleInfo::DEFAULT, LLSaleInfo::DEFAULT,
0, 0,
0); time_corrected());
LLLocalInventory::addItem(item); LLLocalInventory::addItem(item);
} }
else else

View File

@@ -4,40 +4,40 @@
mouse_opaque="true" name="Inventory" rect_control="FloaterInventoryRect" mouse_opaque="true" name="Inventory" rect_control="FloaterInventoryRect"
title="Inventory" width="467"> title="Inventory" width="467">
<search_editor bottom="-50" follows="left|top|right" height="16" label="Type here to search" <search_editor bottom="-50" follows="left|top|right" height="16" label="Type here to search"
left="6" mouse_opaque="true" name="inventory search editor" width="455" /> left="6" mouse_opaque="true" name="inventory search editor" width="455" />
<text name="group_titles_textbox" font="SansSerifSmall" follows="left|top" <text name="group_titles_textbox" font="SansSerifSmall" follows="left|top"
height="16" left="10" bottom_delta="-24" width="120">Quick Filter:</text> height="16" left="10" bottom_delta="-24" width="120">Quick Filter:</text>
<!-- Inventory Type Filter Labels --> <!-- Inventory Type Filter Labels -->
<string name="filter_type_all">All Types</string> <string name="filter_type_all">All Types</string>
<string name="filter_type_animation">Animations</string> <string name="filter_type_animation">Animations</string>
<string name="filter_type_callingcard">Calling Cards</string> <string name="filter_type_callingcard">Calling Cards</string>
<string name="filter_type_wearable">Clothing / Body Parts</string> <string name="filter_type_wearable">Clothing / Body Parts</string>
<string name="filter_type_gesture">Gestures</string> <string name="filter_type_gesture">Gestures</string>
<string name="filter_type_landmark">Landmarks</string> <string name="filter_type_landmark">Landmarks</string>
<string name="filter_type_notecard">Notecards</string> <string name="filter_type_notecard">Notecards</string>
<string name="filter_type_object">Objects</string> <string name="filter_type_object">Objects</string>
<string name="filter_type_script">Scripts</string> <string name="filter_type_script">Scripts</string>
<string name="filter_type_sound">Sounds</string> <string name="filter_type_sound">Sounds</string>
<string name="filter_type_texture">Textures</string> <string name="filter_type_texture">Textures</string>
<string name="filter_type_snapshot">Snapshots</string> <string name="filter_type_snapshot">Snapshots</string>
<string name="filter_type_custom">Custom...</string> <string name="filter_type_custom">Custom...</string>
<combo_box name="Quick Filter" label="Quick Filter" follows="left|top" height="20" left="80" width="150" bottom_delta="0"> <combo_box name="Quick Filter" label="Quick Filter" follows="left|top" height="20" left="80" width="150" bottom_delta="0">
<combo_item name="filter_type_all">All Types</combo_item> <combo_item name="filter_type_all">All Types</combo_item>
<separator /> <separator />
<combo_item name="filter_type_animation">Animations</combo_item> <combo_item name="filter_type_animation">Animations</combo_item>
<combo_item name="filter_type_callingcard">Calling Cards</combo_item> <combo_item name="filter_type_callingcard">Calling Cards</combo_item>
<combo_item name="filter_type_wearable">Clothing / Body Parts</combo_item> <combo_item name="filter_type_wearable">Clothing / Body Parts</combo_item>
<combo_item name="filter_type_gesture">Gestures</combo_item> <combo_item name="filter_type_gesture">Gestures</combo_item>
<combo_item name="filter_type_landmark">Landmarks</combo_item> <combo_item name="filter_type_landmark">Landmarks</combo_item>
<combo_item name="filter_type_notecard">Notecards</combo_item> <combo_item name="filter_type_notecard">Notecards</combo_item>
<combo_item name="filter_type_object">Objects</combo_item> <combo_item name="filter_type_object">Objects</combo_item>
<combo_item name="filter_type_script">Scripts</combo_item> <combo_item name="filter_type_script">Scripts</combo_item>
<combo_item name="filter_type_sound">Sounds</combo_item> <combo_item name="filter_type_sound">Sounds</combo_item>
<combo_item name="filter_type_texture">Textures</combo_item> <combo_item name="filter_type_texture">Textures</combo_item>
<combo_item name="filter_type_snapshot">Snapshots</combo_item> <combo_item name="filter_type_snapshot">Snapshots</combo_item>
<separator /> <separator />
<combo_item name="filter_type_custom">Custom...</combo_item> <combo_item name="filter_type_custom">Custom...</combo_item>
</combo_box> </combo_box>
<tab_container name="inventory filter tabs" follows="left|top|right|bottom" <tab_container name="inventory filter tabs" follows="left|top|right|bottom"
bottom_delta="-487" height="480" left="2" width="463" bottom_delta="-487" height="480" left="2" width="463"
mouse_opaque="false" tab_position="top"> mouse_opaque="false" tab_position="top">

View File

@@ -22,8 +22,8 @@
halign="center" height="20" label="Default" label_selected="Default" halign="center" height="20" label="Default" label_selected="Default"
left="4" mouse_opaque="true" name="Default" scale_image="true" width="64" /> left="4" mouse_opaque="true" name="Default" scale_image="true" width="64" />
<button bottom="-228" enabled="false" follows="left|bottom" font="SansSerifSmall" <button bottom="-228" enabled="false" follows="left|bottom" font="SansSerifSmall"
halign="center" height="20" label="None" label_selected="None" left="72" halign="center" height="20" label="Alpha" label_selected="Alpha" left="72"
mouse_opaque="true" name="None" scale_image="true" width="64" /> mouse_opaque="true" name="Alpha" scale_image="true" width="64" />
<button bottom="-252" enabled="true" follows="left|bottom" font="SansSerifSmall" <button bottom="-252" enabled="true" follows="left|bottom" font="SansSerifSmall"
halign="center" height="20" label="Blank" label_selected="Blank" left="4" halign="center" height="20" label="Blank" label_selected="Blank" left="4"
mouse_opaque="true" name="Blank" scale_image="true" width="64" /> mouse_opaque="true" name="Blank" scale_image="true" width="64" />