diff options
Diffstat (limited to 'linden/indra/newview/llpaneldirbrowser.cpp')
-rw-r--r-- | linden/indra/newview/llpaneldirbrowser.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/linden/indra/newview/llpaneldirbrowser.cpp b/linden/indra/newview/llpaneldirbrowser.cpp index b65480b..52bd0f7 100644 --- a/linden/indra/newview/llpaneldirbrowser.cpp +++ b/linden/indra/newview/llpaneldirbrowser.cpp | |||
@@ -128,8 +128,11 @@ void LLPanelDirBrowser::draw() | |||
128 | LLCtrlListInterface *list = childGetListInterface("results"); | 128 | LLCtrlListInterface *list = childGetListInterface("results"); |
129 | if (list) | 129 | if (list) |
130 | { | 130 | { |
131 | list->selectFirstItem(); // select first item by default | 131 | if (list->getCanSelect()) |
132 | childSetFocus("results", TRUE); | 132 | { |
133 | list->selectFirstItem(); // select first item by default | ||
134 | childSetFocus("results", TRUE); | ||
135 | } | ||
133 | // Request specific data from the server | 136 | // Request specific data from the server |
134 | onCommitList(NULL, this); | 137 | onCommitList(NULL, this); |
135 | } | 138 | } |