
|
If you were logged in you would be able to see more operations.
|
|
|
| Source Version: |
1.17.2
|
| Linden Lab Issue ID: |
SL-47939
|
| Patch attached: |
Patch attached
|
When opening the friends list (clicking "friends" button) the window shows the list of friends, the first entry is selected but the buttons at the bottom of the window (IM, Offer, Teleport) etc. have a disabled state as if no friend was selected in the list. They need to be enabled by clicking an entry, even clicking the same entry (first in list) that is already highlighted when the window opens.
|
|
Description
|
When opening the friends list (clicking "friends" button) the window shows the list of friends, the first entry is selected but the buttons at the bottom of the window (IM, Offer, Teleport) etc. have a disabled state as if no friend was selected in the list. They need to be enabled by clicking an entry, even clicking the same entry (first in list) that is already highlighted when the window opens.
|
Show » |
|
The reason for the behavior is that the function which enables the button (refreshUI) is currently called from LLFloaterFriends::postBuild().
The friend list (scrolllist) has no selected item until the scrolllist object receives the focus (at which time it selects the first).
Postbuild however is called inside buildFloater() before the scrolllist receives the focus (this has been traced through the debugger), so calling refreshUI is pointless.
Solution: I moved refreshUI() from postbuild (which is implicitely called early through buildFloater()) to the constructor after buildFloater() has finished.