Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
479f13d5
Commit
479f13d5
authored
8 years ago
by
andreykproductengine
Browse files
Options
Downloads
Patches
Plain Diff
MAINT-288 Fixed Content of 'Object contents' tab blinks after editing it's permissions
parent
e3974dbb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llsidepaneliteminfo.cpp
+43
-70
43 additions, 70 deletions
indra/newview/llsidepaneliteminfo.cpp
indra/newview/llsidepaneliteminfo.h
+1
-0
1 addition, 0 deletions
indra/newview/llsidepaneliteminfo.h
with
44 additions
and
70 deletions
indra/newview/llsidepaneliteminfo.cpp
+
43
−
70
View file @
479f13d5
...
...
@@ -779,23 +779,7 @@ void LLSidepanelItemInfo::onCommitName()
{
LLPointer
<
LLViewerInventoryItem
>
new_item
=
new
LLViewerInventoryItem
(
item
);
new_item
->
rename
(
labelItemName
->
getText
());
if
(
mObjectID
.
isNull
())
{
new_item
->
updateServer
(
FALSE
);
gInventory
.
updateItem
(
new_item
);
gInventory
.
notifyObservers
();
}
else
{
LLViewerObject
*
object
=
gObjectList
.
findObject
(
mObjectID
);
if
(
object
)
{
object
->
updateInventory
(
new_item
,
TASK_INVENTORY_ITEM_KEY
,
false
);
}
}
onCommitChanges
(
new_item
);
}
}
...
...
@@ -816,23 +800,7 @@ void LLSidepanelItemInfo::onCommitDescription()
LLPointer
<
LLViewerInventoryItem
>
new_item
=
new
LLViewerInventoryItem
(
item
);
new_item
->
setDescription
(
labelItemDesc
->
getText
());
if
(
mObjectID
.
isNull
())
{
new_item
->
updateServer
(
FALSE
);
gInventory
.
updateItem
(
new_item
);
gInventory
.
notifyObservers
();
}
else
{
LLViewerObject
*
object
=
gObjectList
.
findObject
(
mObjectID
);
if
(
object
)
{
object
->
updateInventory
(
new_item
,
TASK_INVENTORY_ITEM_KEY
,
false
);
}
}
onCommitChanges
(
new_item
);
}
}
...
...
@@ -908,23 +876,7 @@ void LLSidepanelItemInfo::onCommitPermissions()
flags
|=
LLInventoryItemFlags
::
II_FLAGS_OBJECT_PERM_OVERWRITE_GROUP
;
}
new_item
->
setFlags
(
flags
);
if
(
mObjectID
.
isNull
())
{
new_item
->
updateServer
(
FALSE
);
gInventory
.
updateItem
(
new_item
);
gInventory
.
notifyObservers
();
}
else
{
LLViewerObject
*
object
=
gObjectList
.
findObject
(
mObjectID
);
if
(
object
)
{
object
->
updateInventory
(
new_item
,
TASK_INVENTORY_ITEM_KEY
,
false
);
}
}
onCommitChanges
(
new_item
);
}
else
{
...
...
@@ -1008,25 +960,7 @@ void LLSidepanelItemInfo::updateSaleInfo()
}
new_item
->
setSaleInfo
(
sale_info
);
if
(
mObjectID
.
isNull
())
{
// This is in the agent's inventory.
new_item
->
updateServer
(
FALSE
);
gInventory
.
updateItem
(
new_item
);
gInventory
.
notifyObservers
();
}
else
{
// This is in an object's contents.
LLViewerObject
*
object
=
gObjectList
.
findObject
(
mObjectID
);
if
(
object
)
{
object
->
updateInventory
(
new_item
,
TASK_INVENTORY_ITEM_KEY
,
false
);
}
}
onCommitChanges
(
new_item
);
}
else
{
...
...
@@ -1035,6 +969,45 @@ void LLSidepanelItemInfo::updateSaleInfo()
}
}
void
LLSidepanelItemInfo
::
onCommitChanges
(
LLPointer
<
LLViewerInventoryItem
>
item
)
{
if
(
item
.
isNull
())
{
return
;
}
if
(
mObjectID
.
isNull
())
{
// This is in the agent's inventory.
item
->
updateServer
(
FALSE
);
gInventory
.
updateItem
(
item
);
gInventory
.
notifyObservers
();
}
else
{
// This is in an object's contents.
LLViewerObject
*
object
=
gObjectList
.
findObject
(
mObjectID
);
if
(
object
)
{
object
->
updateInventory
(
item
,
TASK_INVENTORY_ITEM_KEY
,
false
);
if
(
object
->
isSelected
())
{
// Since object is selected (build floater is open) object will
// receive properties update, detect serial mismatch, dirty and
// reload inventory, meanwhile some other updates will refresh it.
// So mark dirty early, this will prevent unnecessary changes
// and download will be triggered by LLPanelObjectInventory - it
// prevents flashing in content tab and some duplicated request.
object
->
dirtyInventory
();
}
}
}
}
LLViewerInventoryItem
*
LLSidepanelItemInfo
::
findItem
()
const
{
LLViewerInventoryItem
*
item
=
NULL
;
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llsidepaneliteminfo.h
+
1
−
0
View file @
479f13d5
...
...
@@ -89,6 +89,7 @@ class LLSidepanelItemInfo : public LLSidepanelInventorySubpanel
void
onCommitSaleInfo
();
void
onCommitSaleType
();
void
updateSaleInfo
();
void
onCommitChanges
(
LLPointer
<
LLViewerInventoryItem
>
item
);
};
#endif // LL_LLSIDEPANELITEMINFO_H
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment