Skip to content
Snippets Groups Projects
Commit 64d88e4a authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files
parents 5044767d 69c42415
No related branches found
No related tags found
No related merge requests found
...@@ -670,22 +670,17 @@ BOOL LLFloaterMessageLog::onClickCloseCircuit(void* user_data) ...@@ -670,22 +670,17 @@ BOOL LLFloaterMessageLog::onClickCloseCircuit(void* user_data)
void LLFloaterMessageLog::onConfirmCloseCircuit(const LLSD& notification, const LLSD& response) void LLFloaterMessageLog::onConfirmCloseCircuit(const LLSD& notification, const LLSD& response)
{ {
S32 option = LLNotificationsUtil::getSelectedOption(notification, response); S32 option = LLNotificationsUtil::getSelectedOption(notification, response);
if (option != 0)
{
// Not yes
return;
}
LLCircuitData* cdp = gMessageSystem->mCircuitInfo.findCircuit(LLHost(notification["payload"]["circuittoclose"].asString())); LLCircuitData* cdp = gMessageSystem->mCircuitInfo.findCircuit(LLHost(notification["payload"]["circuittoclose"].asString()));
if(!cdp) return; if(!cdp) return;
LLViewerRegion* regionp = LLWorld::getInstance()->getRegion(cdp->getHost()); LLViewerRegion* regionp = LLWorld::getInstance()->getRegion(cdp->getHost());
switch(option) gMessageSystem->newMessageFast(_PREHASH_CloseCircuit);
{ gMessageSystem->sendReliable(cdp->getHost());
case 0: // yes
gMessageSystem->newMessageFast(_PREHASH_CloseCircuit);
gMessageSystem->sendReliable(cdp->getHost());
break;
case 2: // cancel
return;
case 1: // no
default:
break;
}
if(gMessageSystem->findCircuitCode(cdp->getHost())) if(gMessageSystem->findCircuitCode(cdp->getHost()))
gMessageSystem->disableCircuit(cdp->getHost()); gMessageSystem->disableCircuit(cdp->getHost());
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment