set a default Avatar when Friend has no Avatar for Privat Chat.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2199 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-02-05 19:30:18 +00:00
parent 604dce321e
commit e6595f767c
3 changed files with 2 additions and 0 deletions

View File

@ -649,6 +649,7 @@ void PopupChatDialog::updatePeerAvatar(const std::string& peer_id)
if(size == 0) if(size == 0)
{ {
std::cerr << "Got no image" << std::endl ; std::cerr << "Got no image" << std::endl ;
ui.avatarlabel->setPixmap(QPixmap(":/images/no_avatar_70.png"));
return ; return ;
} }

View File

@ -288,6 +288,7 @@
<file>images/new_forum16.png</file> <file>images/new_forum16.png</file>
<file>images/nopic.png</file> <file>images/nopic.png</file>
<file>images/no_avatar.png</file> <file>images/no_avatar.png</file>
<file>images/no_avatar_70.png</file>
<file>images/pasterslink.png</file> <file>images/pasterslink.png</file>
<file>images/package_games1.png</file> <file>images/package_games1.png</file>
<file>images/peerdetails_16x16.png</file> <file>images/peerdetails_16x16.png</file>

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB