void LLNotifyBox::close() { BOOL isTipTmp = mIsTip; if (!mIsTip) { sNotifyBoxCount--; } die(); if(!isTipTmp) { LLNotifyBox * front = gNotifyBoxView->getFirstNontipBox(); if(front) { gNotifyBoxView->showOnly(front); // we're assuming that close is only called by user action (for non-tips), // so we then give focus to the next close button if (front->getDefaultButton()) { front->getDefaultButton()->setFocus(TRUE); } gFocusMgr.triggerFocusFlash(); // TODO it's ugly to call this here } } }