mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-19 11:54:22 -04:00
Fix "(EE) cannot update avatar. mId has unhandled type." error.
Error was raised because event pass trought all widgets.
This commit is contained in:
parent
697ef4061c
commit
dc2578b528
1 changed files with 11 additions and 6 deletions
|
@ -247,13 +247,18 @@ void AvatarWidget::updateStatus(int status)
|
||||||
|
|
||||||
void AvatarWidget::updateAvatar(const QString &peerId)
|
void AvatarWidget::updateAvatar(const QString &peerId)
|
||||||
{
|
{
|
||||||
if(mId.isPeerId() && mId.toPeerId() == RsPeerId(peerId.toStdString()))
|
if(mId.isPeerId()){
|
||||||
|
if(mId.toPeerId() == RsPeerId(peerId.toStdString()))
|
||||||
refreshAvatarImage() ;
|
refreshAvatarImage() ;
|
||||||
else if(mId.isDistantChatId() && mId.toDistantChatId() == DistantChatPeerId(peerId.toStdString()))
|
//else not mId so pass through
|
||||||
|
} else if(mId.isDistantChatId()) {
|
||||||
|
if (mId.toDistantChatId() == DistantChatPeerId(peerId.toStdString()))
|
||||||
refreshAvatarImage() ;
|
refreshAvatarImage() ;
|
||||||
else
|
//else not mId so pass through
|
||||||
|
} else
|
||||||
std::cerr << "(EE) cannot update avatar. mId has unhandled type." << std::endl;
|
std::cerr << "(EE) cannot update avatar. mId has unhandled type." << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AvatarWidget::refreshAvatarImage()
|
void AvatarWidget::refreshAvatarImage()
|
||||||
{
|
{
|
||||||
if (mGxsId.isNull()==false)
|
if (mGxsId.isNull()==false)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue