Added the code to lock the window looper before to update the avatar.
This commit is contained in:
parent
3f2f2783ff
commit
2f417339f4
|
@ -102,8 +102,11 @@ ChatWindow::QuitRequested()
|
||||||
void
|
void
|
||||||
ChatWindow::UpdateAvatar()
|
ChatWindow::UpdateAvatar()
|
||||||
{
|
{
|
||||||
if (fContactLinker->AvatarBitmap() != NULL)
|
if (fContactLinker->AvatarBitmap() != NULL) {
|
||||||
|
LockLooper();
|
||||||
fAvatar->SetBitmap(fContactLinker->AvatarBitmap());
|
fAvatar->SetBitmap(fContactLinker->AvatarBitmap());
|
||||||
|
UnlockLooper();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Ŝarĝante…
Reference in New Issue