From e6595f767cddb0d5bb15503e5369e61f6e7c0152 Mon Sep 17 00:00:00 2001 From: defnax Date: Fri, 5 Feb 2010 19:30:18 +0000 Subject: [PATCH] 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 --- retroshare-gui/src/gui/chat/PopupChatDialog.cpp | 1 + retroshare-gui/src/gui/images.qrc | 1 + retroshare-gui/src/gui/images/no_avatar_70.png | Bin 0 -> 7227 bytes 3 files changed, 2 insertions(+) create mode 100644 retroshare-gui/src/gui/images/no_avatar_70.png diff --git a/retroshare-gui/src/gui/chat/PopupChatDialog.cpp b/retroshare-gui/src/gui/chat/PopupChatDialog.cpp index 1c4e49f13..fcec99c45 100644 --- a/retroshare-gui/src/gui/chat/PopupChatDialog.cpp +++ b/retroshare-gui/src/gui/chat/PopupChatDialog.cpp @@ -649,6 +649,7 @@ void PopupChatDialog::updatePeerAvatar(const std::string& peer_id) if(size == 0) { std::cerr << "Got no image" << std::endl ; + ui.avatarlabel->setPixmap(QPixmap(":/images/no_avatar_70.png")); return ; } diff --git a/retroshare-gui/src/gui/images.qrc b/retroshare-gui/src/gui/images.qrc index 9d71419aa..1fdd6b9e1 100644 --- a/retroshare-gui/src/gui/images.qrc +++ b/retroshare-gui/src/gui/images.qrc @@ -288,6 +288,7 @@ images/new_forum16.png images/nopic.png images/no_avatar.png + images/no_avatar_70.png images/pasterslink.png images/package_games1.png images/peerdetails_16x16.png diff --git a/retroshare-gui/src/gui/images/no_avatar_70.png b/retroshare-gui/src/gui/images/no_avatar_70.png new file mode 100644 index 0000000000000000000000000000000000000000..abd29c18a0309d70d64c5e939f694f9c233b64b7 GIT binary patch literal 7227 zcmXw7byO70*Iqgo1Zj{4>Fy5c?uG>Eh;W4R){s0OW_VQ#`e`7YM?qIy`+~6C5+dK8b7`L04>)?+`VJtdWUE z0ezS%4iP01A8>HsWa9IJ;0j>!6%iIx3?(3J`8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