summaryrefslogtreecommitdiff
path: root/indra/llui/llfolderview.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2012-07-04 00:30:00 -0700
committerRichard Linden <none@none>2012-07-04 00:30:00 -0700
commitd3edb1c466f42e2c46c77e43b26d700c6298b8d6 (patch)
tree0aababfb27cf540d9e2a5eea1316c47fb3351f1c /indra/llui/llfolderview.cpp
parent1494a1058f41c5aa00a8ed08fe71123f63e92e81 (diff)
CHUI-101 WIP Make LLFolderview general purpose
partial fix for crash on startup
Diffstat (limited to 'indra/llui/llfolderview.cpp')
-rw-r--r--indra/llui/llfolderview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llui/llfolderview.cpp b/indra/llui/llfolderview.cpp
index 0d3bc44ae4..990b79a30b 100644
--- a/indra/llui/llfolderview.cpp
+++ b/indra/llui/llfolderview.cpp
@@ -1798,8 +1798,8 @@ void LLFolderView::update()
BOOL filter_finished = getViewModelItem()->passedFilter()
&& mViewModel->contentsReady();
if (filter_finished
- || gFocusMgr.childHasKeyboardFocus(getParent()) // assume we are inside a scroll container
- || gFocusMgr.childHasMouseCapture(getParent()))
+ || gFocusMgr.childHasKeyboardFocus(mParentPanel)
+ || gFocusMgr.childHasMouseCapture(mParentPanel))
{
// finishing the filter process, giving focus to the folder view, or dragging the scrollbar all stop the auto select process
mNeedsAutoSelect = FALSE;