mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 21:58:57 -04:00
removed annoying warning in avatar widget
This commit is contained in:
parent
70662cf8bf
commit
4d452bf6eb
1 changed files with 9 additions and 6 deletions
|
@ -33,13 +33,13 @@
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
AvatarWidget::AvatarWidget(QWidget *parent) :
|
//#define DEBUG_AVATAR_GUI 1
|
||||||
QLabel(parent), ui(new Ui::AvatarWidget)
|
|
||||||
|
AvatarWidget::AvatarWidget(QWidget *parent) : QLabel(parent), ui(new Ui::AvatarWidget)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
mFlag.isOwnId = false;
|
mFlag.isOwnId = false;
|
||||||
// mFlag.isGpg = false;
|
|
||||||
defaultAvatar = ":/images/no_avatar_background.png";
|
defaultAvatar = ":/images/no_avatar_background.png";
|
||||||
mPeerState = RS_STATUS_OFFLINE ;
|
mPeerState = RS_STATUS_OFFLINE ;
|
||||||
|
|
||||||
|
@ -255,8 +255,11 @@ void AvatarWidget::updateAvatar(const QString &peerId)
|
||||||
if (mId.toDistantChatId() == DistantChatPeerId(peerId.toStdString()))
|
if (mId.toDistantChatId() == DistantChatPeerId(peerId.toStdString()))
|
||||||
refreshAvatarImage() ;
|
refreshAvatarImage() ;
|
||||||
//else not mId so pass through
|
//else not mId so pass through
|
||||||
} else
|
}
|
||||||
|
#ifdef DEBUG_AVATAR_GUI
|
||||||
|
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;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void AvatarWidget::refreshAvatarImage()
|
void AvatarWidget::refreshAvatarImage()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue