summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-05-31 00:17:36 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-05-31 00:21:48 +0300
commit1834cc1a8be0b4519d774ca52202677ccaf40933 (patch)
treebe8d0089620219c7ce0014b6dca91ca36170a079 /indra
parentcaa21f9054c51eea6557c9f0d080d91e43e44018 (diff)
SL-19795 Creating folders in combination mode does not scroll to new folder
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llinventorypanel.cpp9
-rw-r--r--indra/newview/llinventorypanel.h2
2 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llinventorypanel.cpp b/indra/newview/llinventorypanel.cpp
index bd15e55b9a..9827fa8c5c 100644
--- a/indra/newview/llinventorypanel.cpp
+++ b/indra/newview/llinventorypanel.cpp
@@ -2132,6 +2132,15 @@ void LLInventorySingleFolderPanel::setSelectCallback(const boost::function<void(
}
}
+void LLInventorySingleFolderPanel::setScroller(LLScrollContainer* scroller)
+{
+ mExternalScroller = scroller;
+ if (mFolderRoot.get())
+ {
+ mFolderRoot.get()->setScrollContainer(mExternalScroller);
+ }
+}
+
void LLInventorySingleFolderPanel::initFromParams(const Params& p)
{
mFolderID = gInventory.getRootFolderID();
diff --git a/indra/newview/llinventorypanel.h b/indra/newview/llinventorypanel.h
index 2754d79fbe..8d3edebcb4 100644
--- a/indra/newview/llinventorypanel.h
+++ b/indra/newview/llinventorypanel.h
@@ -422,7 +422,7 @@ public:
std::list<LLUUID> getNavForwardList() { return mForwardFolders; }
void setSelectCallback(const boost::function<void (const std::deque<LLFolderViewItem*>& items, BOOL user_action)>& cb);
- void setScroller(LLScrollContainer* scroller) { mExternalScroller = scroller; }
+ void setScroller(LLScrollContainer* scroller);
typedef boost::function<void()> root_changed_callback_t;
boost::signals2::connection setRootChangedCallback(root_changed_callback_t cb);