diff options
author | Jacek Antonelli | 2008-08-15 23:44:59 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:59 -0500 |
commit | a408bac29378072fbf36864164149458c978cfcc (patch) | |
tree | 67feccf1a5d3816611ba48d6762f86f0f7f4b1f6 /linden/indra/newview/llpaneldirbrowser.cpp | |
parent | Second Life viewer sources 1.17.0.12 (diff) | |
download | meta-impy-a408bac29378072fbf36864164149458c978cfcc.zip meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.gz meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.bz2 meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.xz |
Second Life viewer sources 1.17.1.0
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 | } |