Don't wait for avatars on game sync, instead show them whenever they are there.
This commit is contained in:
@@ -1218,9 +1218,11 @@ void mainWindowImpl::setPlayerAvatar(int myID, QString myAvatar) {
|
||||
|
||||
if(QFile::QFile(myAvatar).exists()) {
|
||||
playerAvatarLabelArray[tmpPlayer->getMyID()]->setPixmap(myAvatar);
|
||||
tmpPlayer->setMyAvatar(myAvatar);
|
||||
}
|
||||
else {
|
||||
playerAvatarLabelArray[tmpPlayer->getMyID()]->setPixmap(QPixmap(myAppDataPath +"gfx/gui/table/default/genereticAvatar.png"));
|
||||
tmpPlayer->setMyAvatar("");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user