From 461ae260df35481f43cd46e20ca9426586449ac4 Mon Sep 17 00:00:00 2001 From: thunder2 Date: Thu, 25 Nov 2010 13:33:16 +0000 Subject: [PATCH] Fixed online toaster. The name of the friend is shown again. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3869 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/notifyqt.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/retroshare-gui/src/gui/notifyqt.cpp b/retroshare-gui/src/gui/notifyqt.cpp index e2e8aded2..5edec87a3 100644 --- a/retroshare-gui/src/gui/notifyqt.cpp +++ b/retroshare-gui/src/gui/notifyqt.cpp @@ -376,19 +376,18 @@ void NotifyQt::UpdateGUI() /* id the name */ std::string name; std::string realmsg; - if (RS_POPUP_DOWNLOAD == RS_POPUP_DOWNLOAD) { + unsigned char *data = NULL; + int size = 0 ; + + if (type == RS_POPUP_DOWNLOAD) { /* id = file hash */ } else { name = rsPeers->getPeerName(id); realmsg = "" + name + ""; + + rsMsgs->getAvatarData(id,data,size); } - - unsigned char *data = NULL; - int size = 0 ; - - rsMsgs->getAvatarData(id,data,size); - switch(type) { case RS_POPUP_MSG: