Added the code to lock the window looper before to update the avatar.

This commit is contained in:
barrett 2012-03-08 01:17:32 +00:00
parent 3f2f2783ff
commit 2f417339f4

View File

@ -102,8 +102,11 @@ ChatWindow::QuitRequested()
void
ChatWindow::UpdateAvatar()
{
if (fContactLinker->AvatarBitmap() != NULL)
if (fContactLinker->AvatarBitmap() != NULL) {
LockLooper();
fAvatar->SetBitmap(fContactLinker->AvatarBitmap());
UnlockLooper();
}
}