From 4110d1975a1f34651e6a8cfd65da3985578da346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Liru=20F=C3=A6rs?= Date: Sun, 22 Dec 2019 21:16:07 -0500 Subject: [PATCH] Give priority to a notify tip's children handling a left click --- indra/newview/llnotify.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/indra/newview/llnotify.cpp b/indra/newview/llnotify.cpp index e16d6a0af..f99bdc2f4 100644 --- a/indra/newview/llnotify.cpp +++ b/indra/newview/llnotify.cpp @@ -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