diff options
| author | James Cook <james@lindenlab.com> | 2010-05-25 11:41:33 -0700 |
|---|---|---|
| committer | James Cook <james@lindenlab.com> | 2010-05-25 11:41:33 -0700 |
| commit | a91d10dc1806d1931c7f1361bfcf70df59d982d5 (patch) | |
| tree | 20f2940d888aaf71c54ff1e7834cbf79a3617216 /indra/newview/llfloateravatarpicker.cpp | |
| parent | d6ea42984553b7adb6f26cf2ed094d32e36814d2 (diff) | |
| parent | f682c996d28c3841b6709f8fc67ba443bfcd1926 (diff) | |
Merge
Diffstat (limited to 'indra/newview/llfloateravatarpicker.cpp')
| -rw-r--r-- | indra/newview/llfloateravatarpicker.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llfloateravatarpicker.cpp b/indra/newview/llfloateravatarpicker.cpp index e0346222c0..16a8f244ee 100644 --- a/indra/newview/llfloateravatarpicker.cpp +++ b/indra/newview/llfloateravatarpicker.cpp @@ -322,6 +322,18 @@ void LLFloaterAvatarPicker::populateFriend() void LLFloaterAvatarPicker::draw() { + // sometimes it is hard to determine when Select/Ok button should be disabled (see LLAvatarActions::shareWithAvatars). + // lets check this via mOkButtonValidateSignal callback periodically. + static LLFrameTimer timer; + if (timer.hasExpired()) + { + timer.setTimerExpirySec(0.33f); // three times per second should be enough. + + // simulate list changes. + onList(); + timer.start(); + } + LLFloater::draw(); if (!mNearMeListComplete && childGetVisibleTab("ResidentChooserTabs") == getChild<LLPanel>("NearMePanel")) { |
