added tooltip for systray to display nickname and location

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4103 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2011-03-26 16:54:08 +00:00
parent be7359e804
commit c820826260

View File

@ -800,6 +800,11 @@ void MainWindow::updateStatus()
tray += tr("%1 friends connected").arg(nOnlineCount);
}
RsPeerDetails pd ;
if (rsPeers->getPeerDetails(rsPeers->getOwnId(),pd)) {
tray += "\n" + QString::fromStdString(pd.name) + " (" + QString::fromStdString(pd.location) + ") " ;
}
trayIcon->setToolTip(tray);
}