Give priority to a notify tip's children handling a left click

This commit is contained in:
Liru Færs
2019-12-22 21:16:07 -05:00
parent b1862ce1c1
commit 4110d1975a

View File

@@ -416,7 +416,8 @@ LLButton* LLNotifyBox::addButton(const std::string& name, const std::string& lab
BOOL LLNotifyBox::handleMouseUp(S32 x, S32 y, MASK mask)
{
if (mIsTip)
bool done = LLPanel::handleMouseUp(x, y, mask);
if (!done && mIsTip)
{
mNotification->respond(mNotification->getResponseTemplate(LLNotification::WITH_DEFAULT_BUTTON));
@@ -426,7 +427,7 @@ BOOL LLNotifyBox::handleMouseUp(S32 x, S32 y, MASK mask)
setFocus(TRUE);
return LLPanel::handleMouseUp(x, y, mask);
return done;
}
// virtual