Skip to content

Commit 3ab800d

Browse files
committed
2 parents 332cef0 + 77f500c commit 3ab800d

31 files changed

Lines changed: 94 additions & 61 deletions

autobuild.xml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1933,38 +1933,6 @@
19331933
<key>version</key>
19341934
<string>7.11.1.297294</string>
19351935
</map>
1936-
<key>modernjson</key>
1937-
<map>
1938-
<key>copyright</key>
1939-
<string>Copyright (c) 2013-2018 Niels Lohmann</string>
1940-
<key>description</key>
1941-
<string>JSON for Modern C++</string>
1942-
<key>license</key>
1943-
<string>MIT</string>
1944-
<key>license_file</key>
1945-
<string>LICENSES/modernjson.txt</string>
1946-
<key>name</key>
1947-
<string>modernjson</string>
1948-
<key>platforms</key>
1949-
<map>
1950-
<key>common</key>
1951-
<map>
1952-
<key>archive</key>
1953-
<map>
1954-
<key>hash</key>
1955-
<string>6f11eca7e2a6ca61f9217e949a64f026</string>
1956-
<key>hash_algorithm</key>
1957-
<string>md5</string>
1958-
<key>url</key>
1959-
<string>https://depot.alchemyviewer.org/pub/common/lib/modernjson-3.2.0-common-201809210551.tar.bz2</string>
1960-
</map>
1961-
<key>name</key>
1962-
<string>common</string>
1963-
</map>
1964-
</map>
1965-
<key>version</key>
1966-
<string>3.2.0</string>
1967-
</map>
19681936
<key>nvapi</key>
19691937
<map>
19701938
<key>copyright</key>

indra/cmake/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ set(cmake_SOURCE_FILES
5050
GooglePerfTools.cmake
5151
Hunspell.cmake
5252
JPEG.cmake
53-
Json.cmake
5453
LLAddBuildTest.cmake
5554
LLAppearance.cmake
5655
LLAudio.cmake

indra/deps/CMakeLists.txt

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@ FetchContent_Declare(
1515
GIT_REPOSITORY https://github.com/fmtlib/fmt.git
1616
GIT_TAG 6.1.2
1717
)
18+
FetchContent_Declare(
19+
nlohmann_json
20+
GIT_REPOSITORY https://github.com/nlohmann/json.git
21+
GIT_TAG v3.7.3
22+
)
1823
FetchContent_Declare(
1924
absl
2025
GIT_REPOSITORY https://github.com/abseil/abseil-cpp.git
21-
GIT_TAG 29235139149790f5afc430c11cec8f1eb1677607
26+
GIT_TAG 0033c9ea91a52ade7c6b725aa2ef3cbe15463421
2227
)
2328

2429
# This is a hack because absl has dumb cmake
@@ -44,5 +49,14 @@ if(WINDOWS)
4449
FetchContent_MakeAvailable(fmt)
4550
endif()
4651

52+
# Typically you don't care so much for a third party library's tests to be
53+
# run from your own project's code.
54+
set(JSON_BuildTests OFF CACHE INTERNAL "")
55+
56+
# If you only include this third party in PRIVATE source files, you do not
57+
# need to install it when your main project gets installed.
58+
set(JSON_Install OFF CACHE INTERNAL "")
59+
FetchContent_MakeAvailable(nlohmann_json)
60+
4761
unset(CMAKE_FOLDER)
4862
unset(CMAKE_POSITION_INDEPENDENT_CODE)

indra/llcommon/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ include(Linking)
1212
include(Boost)
1313
include(OpenSSL)
1414
include(LLSharedLibs)
15-
include(Json)
1615
include(Copy3rdPartyLibs)
1716
include(ZLIB)
1817
include(URIPARSER)
@@ -300,6 +299,7 @@ target_link_libraries(
300299
${Boost_SYSTEM_LIBRARY}
301300
${CORESERVICES_LIBRARY}
302301
${URIPARSER_LIBRARY}
302+
nlohmann_json::nlohmann_json
303303
${RT_LIBRARY}
304304
)
305305

indra/newview/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ include(FMODSTUDIO)
1818
include(GeneratePrecompiledHeader)
1919
include(GLOD)
2020
include(Hunspell)
21-
include(Json)
2221
include(LLAddBuildTest)
2322
include(LLAppearance)
2423
include(LLAudio)
@@ -63,7 +62,6 @@ include_directories(
6362
${STATEMACHINE_INCLUDE_DIRS}
6463
${DBUSGLIB_INCLUDE_DIRS}
6564
${ZLIB_INCLUDE_DIRS}
66-
${JSON_INCLUDE_DIR}
6765
${GLOD_INCLUDE_DIR}
6866
${LLAUDIO_INCLUDE_DIRS}
6967
${LLCHARACTER_INCLUDE_DIRS}
@@ -1710,6 +1708,7 @@ target_link_libraries(${VIEWER_BINARY_NAME}
17101708
${LLAPPEARANCE_LIBRARIES}
17111709
absl::flat_hash_map
17121710
absl::node_hash_map
1711+
nlohmann_json::nlohmann_json
17131712
${FMT_LIBRARY}
17141713
)
17151714

indra/newview/llfloaterinspect.cpp

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ LLFloaterInspect::LLFloaterInspect(const LLSD&)
5858
mDirty(FALSE)
5959
{
6060
mCommitCallbackRegistrar.add("Inspect.OwnerProfile", boost::bind(&LLFloaterInspect::onClickOwnerProfile, this));
61+
mCommitCallbackRegistrar.add("Inspect.LastOwnerProfile", boost::bind(&LLFloaterInspect::onClickLastOwnerProfile, this));
6162
mCommitCallbackRegistrar.add("Inspect.CreatorProfile", boost::bind(&LLFloaterInspect::onClickCreatorProfile, this));
6263
mCommitCallbackRegistrar.add("Inspect.SelectObject", boost::bind(&LLFloaterInspect::onSelectObject, this));
6364
LLUICtrlFactory::getInstance()->buildFloater(this, "floater_inspect.xml");
@@ -166,6 +167,36 @@ void LLFloaterInspect::onClickOwnerProfile()
166167
}
167168
}
168169

170+
void LLFloaterInspect::onClickLastOwnerProfile()
171+
{
172+
if(mObjectList->getAllSelected().size() == 0) return;
173+
LLScrollListItem* first_selected =mObjectList->getFirstSelected();
174+
175+
if (first_selected)
176+
{
177+
LLUUID selected_id = first_selected->getUUID();
178+
struct f : public LLSelectedNodeFunctor
179+
{
180+
LLUUID obj_id;
181+
f(const LLUUID& id) : obj_id(id) {}
182+
virtual bool apply(LLSelectNode* node)
183+
{
184+
return (obj_id == node->getObject()->getID());
185+
}
186+
} func(selected_id);
187+
LLSelectNode* node = mObjectSelection->getFirstNode(&func);
188+
if(node)
189+
{
190+
const LLUUID& last_owner_id = node->mPermissions->getLastOwner();
191+
// [RLVa:KB] - Checked: 2010-08-25 (RLVa-1.2.2a) | Modified: RLVa-1.0.0e
192+
if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES) || gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMETAGS))
193+
if (last_owner_id == node->mPermissions->getOwner()) return;
194+
// [/RLVa:KB]
195+
LLAvatarActions::showProfile(last_owner_id);
196+
}
197+
}
198+
}
199+
169200
void LLFloaterInspect::onSelectObject()
170201
{
171202
if(LLFloaterInspect::getSelectedUUID() != LLUUID::null)

indra/newview/llfloaterinspect.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class LLFloaterInspect : public LLFloater, public LLFloaterSingleton<LLFloaterIn
6060
virtual void onFocusReceived();
6161
void onClickCreatorProfile();
6262
void onClickOwnerProfile();
63+
void onClickLastOwnerProfile();
6364
void onSelectObject();
6465

6566
LLScrollListCtrl* mObjectList;

indra/newview/llfloaternamedesc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ S32 LLFloaterNameDesc::getExpectedUploadCost() const
148148
LLAssetType::EType asset_type = exten == "wav" ? LLAssetType::AT_SOUND
149149
: (exten == "anim" || exten == "bvh") ? LLAssetType::AT_ANIMATION
150150
: exten != "lsl" ? LLAssetType::AT_TEXTURE
151-
: asset_type = LLAssetType::AT_NONE;
151+
: LLAssetType::AT_NONE;
152152
S32 upload_cost = -1;
153153

154154
if (asset_type != LLAssetType::AT_NONE)

indra/newview/llgroupnotify.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,9 @@ LLGroupNotifyBox::LLGroupNotifyBox(const std::string& subject,
150150

151151
auto links = new LLTextEditor(std::string("group"), LLRect(x, y + 5, RIGHT, bottom), S32_MAX, LLStringUtil::null, nullptr, false, true); // Top adjustment to line up with icon
152152
links->setBorderVisible(FALSE);
153-
links->setReadOnlyFgColor(text_color);
154-
links->setReadOnlyBgColor(LLColor4::transparent);
153+
static const auto header_bg_color = gColors.getColor("GroupNotifyHeaderBGColor");
154+
if (header_bg_color[VALPHA]) links->setReadOnlyFgColor(text_color);
155+
links->setReadOnlyBgColor(header_bg_color);
155156
links->setEnabled(false);
156157
links->setTakesNonScrollClicks(TRUE);
157158
links->setHideScrollbarForShortDocs(TRUE);

indra/newview/llimprocessing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1842,7 +1842,7 @@ void LLIMProcessing::processNewMessage(const LLUUID& from_id,
18421842
strings.push_back(from_id.asString());
18431843
send_generic_message("requestonlinenotification", strings);
18441844

1845-
args["NAME"] = name;
1845+
args["NAME"] = LLAvatarActions::getSLURL(from_id);
18461846
LLSD payload;
18471847
payload["from_id"] = from_id;
18481848
LLAvatarNameCache::get(from_id, boost::bind(&notification_display_name_callback, _1, _2, "FriendshipAccepted", args, payload));

0 commit comments

Comments
 (0)