From 6dadfaffac1288893c4b9341d0e5abfa78448189 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Sat, 4 May 2019 03:33:51 -0400 Subject: [PATCH] Improve rect control name of inventory folder floater This makes it more reliably usable and more understandable to the user. The downside of this is that folders with the same name will have the same position, but I don't think that really matters. --- indra/newview/lffloaterinvpanel.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/indra/newview/lffloaterinvpanel.cpp b/indra/newview/lffloaterinvpanel.cpp index 8a1b739ce..1f2d46946 100644 --- a/indra/newview/lffloaterinvpanel.cpp +++ b/indra/newview/lffloaterinvpanel.cpp @@ -44,10 +44,7 @@ LFFloaterInvPanel::LFFloaterInvPanel(const LLSD& cat, const std::string& name, L setTitle(title); // Figure out a unique name for our rect control - const auto rect_control = llformat("FloaterInv%sRect", - cat.has("name") ? boost::algorithm::erase_all_copy(cat["name"].asStringRef(), " ").data() : - cat.has("id") ? cat["id"].asStringRef().data() : - cat["type"].asStringRef().data()); + const auto rect_control = llformat("FloaterInv%sRect", boost::algorithm::erase_all_copy(title, " ").data()); if (gSavedSettings.controlExists(rect_control)) // Set our initial rect to the stored control setRect(gSavedSettings.getRect(rect_control));