mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 02:55:18 -04:00
exchange of what version of retroshare our friends are using
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1308 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
bc82110c97
commit
0b6800a5ce
12 changed files with 335 additions and 51 deletions
|
@ -38,6 +38,7 @@
|
|||
#include <sstream>
|
||||
#include "rsiface/rsfiles.h"
|
||||
#include "rsiface/rspeers.h"
|
||||
#include "rsiface/rsdisc.h"
|
||||
#include <algorithm>
|
||||
|
||||
/* Images for context menu icons */
|
||||
|
@ -608,6 +609,10 @@ void TransfersDialog::insertTransfers()
|
|||
/* continue to next download item if no peers to add */
|
||||
if (!info.peers.size()) continue;
|
||||
|
||||
std::map<std::string, std::string>::iterator vit;
|
||||
std::map<std::string, std::string> versions;
|
||||
bool retv = rsDisc->getDiscVersions(versions);
|
||||
|
||||
int dlPeers = 0;
|
||||
for (pit = info.peers.begin(); pit != info.peers.end(); pit++) {
|
||||
symbol = "";
|
||||
|
@ -617,8 +622,10 @@ void TransfersDialog::insertTransfers()
|
|||
fileSize = info.size;
|
||||
progress = (info.transfered * 100.0) / info.size;
|
||||
dlspeed = pit->tfRate * 1024.0;
|
||||
//sources = QString("rShare v %1").arg(tr("0.4.13a"));//TODO: take it from somewhere
|
||||
sources = "";
|
||||
if (retv && versions.end() != (vit = versions.find(pit->peerId))) {
|
||||
sources = QString("rShare v") + QString::fromStdString(vit->second);
|
||||
}
|
||||
|
||||
if (info.downloadStatus == FT_STATE_COMPLETE) {
|
||||
status = tr("Complete");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue