Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Testicular Slingshot
Alchemy Viewer
Commits
69c42415
Commit
69c42415
authored
Feb 09, 2020
by
Testicular Slingshot
Committed by
Rye Mutt
Feb 09, 2020
Browse files
Fix for issue #47
parent
92972880
Changes
1
Hide whitespace changes
Inline
Side-by-side
indra/newview/llfloatermessagelog.cpp
View file @
69c42415
...
...
@@ -670,22 +670,17 @@ BOOL LLFloaterMessageLog::onClickCloseCircuit(void* user_data)
void
LLFloaterMessageLog
::
onConfirmCloseCircuit
(
const
LLSD
&
notification
,
const
LLSD
&
response
)
{
S32
option
=
LLNotificationsUtil
::
getSelectedOption
(
notification
,
response
);
if
(
option
!=
0
)
{
// Not yes
return
;
}
LLCircuitData
*
cdp
=
gMessageSystem
->
mCircuitInfo
.
findCircuit
(
LLHost
(
notification
[
"payload"
][
"circuittoclose"
].
asString
()));
if
(
!
cdp
)
return
;
LLViewerRegion
*
regionp
=
LLWorld
::
getInstance
()
->
getRegion
(
cdp
->
getHost
());
switch
(
option
)
{
case
0
:
// yes
gMessageSystem
->
newMessageFast
(
_PREHASH_CloseCircuit
);
gMessageSystem
->
sendReliable
(
cdp
->
getHost
());
break
;
case
2
:
// cancel
return
;
case
1
:
// no
default:
break
;
}
gMessageSystem
->
newMessageFast
(
_PREHASH_CloseCircuit
);
gMessageSystem
->
sendReliable
(
cdp
->
getHost
());
if
(
gMessageSystem
->
findCircuitCode
(
cdp
->
getHost
()))
gMessageSystem
->
disableCircuit
(
cdp
->
getHost
());
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment