diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-05-04 22:23:03 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-05-04 22:23:03 +0300 |
commit | ad8634856dcc06db79b285b6109a2da6a363b002 (patch) | |
tree | 4d5aa770cd1c4b480e91838e2a24a2ed4794f4d2 | |
parent | 0e4ffe41bc1d6ba1f453d654ca6c04dc5e29e99f (diff) |
SL-17314 Don't focus inventory when handling landmark creation
-rw-r--r-- | indra/newview/llfloatercreatelandmark.cpp | 1 | ||||
-rw-r--r-- | indra/newview/llviewermessage.cpp | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/llfloatercreatelandmark.cpp b/indra/newview/llfloatercreatelandmark.cpp index 6b1d9306fb..495bf5d20e 100644 --- a/indra/newview/llfloatercreatelandmark.cpp +++ b/indra/newview/llfloatercreatelandmark.cpp @@ -316,6 +316,7 @@ void LLFloaterCreateLandmark::setItem(const uuid_set_t& items) { removeObserver(); mItem = item; + setVisibleAndFrontmost(true); break; } } diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 10ffbc7fa7..6d19f868b4 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -33,6 +33,7 @@ #include "llavataractions.h" #include "llavatarnamecache.h" // IDEVO HACK #include "lleventtimer.h" +#include "llfloatercreatelandmark.h" #include "llfloaterreg.h" #include "llfolderview.h" #include "llfollowcamparams.h" @@ -1560,6 +1561,17 @@ bool highlight_offered_object(const LLUUID& obj_id) } } + if (obj->getType() == LLAssetType::AT_LANDMARK) + { + LLFloaterCreateLandmark *floater = LLFloaterReg::findTypedInstance<LLFloaterCreateLandmark>("add_landmark"); + if (floater && floater->getItem() && floater->getItem()->getUUID() == obj_id) + { + // LLFloaterCreateLandmark is supposed to handle this, + // keep landmark creation floater at the front + return false; + } + } + return true; } |