fixed display of toaster for distant msgs

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6659 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-08-31 13:12:26 +00:00
parent 8d94ecf9ff
commit 19808587e9
3 changed files with 17 additions and 1 deletions

View file

@ -775,6 +775,14 @@ void NotifyQt::UpdateGUI()
switch(type)
{
case RS_POPUP_ENCRYPTED_MSG:
soundManager->play(SOUND_MESSAGE_ARRIVED);
if (popupflags & RS_POPUP_MSG)
{
toaster = new Toaster(new MessageToaster(std::string(), QObject::tr("Unknown title"), QObject::tr("[Encrypted message]")));
}
break;
case RS_POPUP_MSG:
soundManager->play(SOUND_MESSAGE_ARRIVED);
@ -925,6 +933,9 @@ void NotifyQt::testToaster(uint notifyFlags, /*RshareSettings::enumToasterPositi
switch(type)
{
case RS_POPUP_ENCRYPTED_MSG:
toaster = new Toaster(new MessageToaster(std::string(), tr("Unknown title"), tr("[Encrypted message]")));
break;
case RS_POPUP_MSG:
toaster = new Toaster(new MessageToaster(id, title, message));
break;