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
84c44b8f
Commit
84c44b8f
authored
13 years ago
by
Squire
Browse files
Options
Downloads
Plain Diff
STORM-1368 Merge with veiewer-development-crash-horde
parents
ede3b577
3a25753b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llpreviewnotecard.cpp
+18
-7
18 additions, 7 deletions
indra/newview/llpreviewnotecard.cpp
with
18 additions
and
7 deletions
indra/newview/llpreviewnotecard.cpp
+
18
−
7
View file @
84c44b8f
...
@@ -401,15 +401,14 @@ struct LLSaveNotecardInfo
...
@@ -401,15 +401,14 @@ struct LLSaveNotecardInfo
bool
LLPreviewNotecard
::
saveIfNeeded
(
LLInventoryItem
*
copyitem
)
bool
LLPreviewNotecard
::
saveIfNeeded
(
LLInventoryItem
*
copyitem
)
{
{
if
(
!
gAssetStorage
)
LLViewerTextEditor
*
editor
=
getChild
<
LLViewerTextEditor
>
(
"Notecard Editor"
);
if
(
!
editor
)
{
{
llwarns
<<
"
Not connected to an asset storage system
."
<<
llendl
;
llwarns
<<
"
Cannot get handle to the notecard editor
."
<<
llendl
;
return
false
;
return
false
;
}
}
LLViewerTextEditor
*
editor
=
getChild
<
LLViewerTextEditor
>
(
"Notecard Editor"
);
if
(
!
editor
->
isPristine
())
if
(
!
editor
->
isPristine
())
{
{
// We need to update the asset information
// We need to update the asset information
...
@@ -436,8 +435,15 @@ bool LLPreviewNotecard::saveIfNeeded(LLInventoryItem* copyitem)
...
@@ -436,8 +435,15 @@ bool LLPreviewNotecard::saveIfNeeded(LLInventoryItem* copyitem)
// save it out to database
// save it out to database
if
(
item
)
if
(
item
)
{
{
std
::
string
agent_url
=
gAgent
.
getRegion
()
->
getCapability
(
"UpdateNotecardAgentInventory"
);
const
LLViewerRegion
*
region
=
gAgent
.
getRegion
();
std
::
string
task_url
=
gAgent
.
getRegion
()
->
getCapability
(
"UpdateNotecardTaskInventory"
);
if
(
!
region
)
{
llwarns
<<
"Not connected to a region, cannot save notecard."
<<
llendl
;
return
false
;
}
std
::
string
agent_url
=
region
->
getCapability
(
"UpdateNotecardAgentInventory"
);
std
::
string
task_url
=
region
->
getCapability
(
"UpdateNotecardTaskInventory"
);
if
(
mObjectUUID
.
isNull
()
&&
!
agent_url
.
empty
())
if
(
mObjectUUID
.
isNull
()
&&
!
agent_url
.
empty
())
{
{
// Saving into agent inventory
// Saving into agent inventory
...
@@ -472,6 +478,11 @@ bool LLPreviewNotecard::saveIfNeeded(LLInventoryItem* copyitem)
...
@@ -472,6 +478,11 @@ bool LLPreviewNotecard::saveIfNeeded(LLInventoryItem* copyitem)
(
void
*
)
info
,
(
void
*
)
info
,
FALSE
);
FALSE
);
}
}
else
// !gAssetStorage
{
llwarns
<<
"Not connected to an asset storage system."
<<
llendl
;
return
false
;
}
}
}
}
}
return
true
;
return
true
;
...
...
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