BUGFIX: Fix display of URL seeds in the UI

This commit is contained in:
Christophe Dumez
2010-10-10 15:43:53 +00:00
parent c1af948649
commit 49b21059fa
2 changed files with 6 additions and 5 deletions

View File

@@ -241,11 +241,11 @@ QStringList QTorrentHandle::url_seeds() const {
Q_ASSERT(h.is_valid());
QStringList res;
try {
std::vector<std::string> existing_seeds = h.get_torrent_info().url_seeds();
unsigned int nbSeeds = existing_seeds.size();
QString existing_seed;
for(unsigned int i=0; i<nbSeeds; ++i) {
res << misc::toQString(existing_seeds[i]);
const std::set<std::string> existing_seeds = h.url_seeds();
std::set<std::string>::const_iterator it;
for(it = existing_seeds.begin(); it != existing_seeds.end(); it++) {
qDebug("URL Seed: %s", it->c_str());
res << misc::toQString(*it);
}
} catch(std::exception e) {}
return res;