From 876e33dc0a80656a75195988cdd2b0b85ab6497f Mon Sep 17 00:00:00 2001 From: defnax Date: Sun, 13 Jun 2010 21:02:29 +0000 Subject: [PATCH] fixed forgotten notify changes for MessageToaster git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3129 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/notifyqt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/retroshare-gui/src/gui/notifyqt.cpp b/retroshare-gui/src/gui/notifyqt.cpp index 5f9bff2fe..7cc634d02 100644 --- a/retroshare-gui/src/gui/notifyqt.cpp +++ b/retroshare-gui/src/gui/notifyqt.cpp @@ -247,13 +247,12 @@ void NotifyQt::UpdateGUI() uint32_t type; std::string title, id, msg; - if (rsNotify->NotifyPopupMessage(type, id, msg)) + if (rsNotify->NotifyPopupMessage(type, id, title, msg)) { uint popupflags = Settings->getNotifyFlags(); /* id the name */ std::string name = rsPeers->getPeerName(id); - //std::cerr << "NotifyQT got message for peer id : " << id << "; name : " << name << std::endl; std::string realmsg = "" + name + ""; switch(type) { @@ -261,8 +260,9 @@ void NotifyQt::UpdateGUI() if (popupflags & RS_POPUP_MSG) { MessageToaster * msgToaster = new MessageToaster(); - //msgToaster->setMessage(QString::fromStdString(title)); + msgToaster->setMessage(QString::fromStdString(msg)); msgToaster->setName(QString::fromStdString(realmsg)); + msgToaster->setTitle(QString::fromStdString(title)); msgToaster->displayPopup(); } break;