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

@@ -1,6 +1,7 @@
*Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.4.5 *Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.4.5
- BUGFIX: Remember torrent completion date correctly - BUGFIX: Remember torrent completion date correctly
- BUGFIX: Fix feature to keep incomplete torrents in a separate folder - BUGFIX: Fix feature to keep incomplete torrents in a separate folder
- BUGFIX: Fix display of URL seeds in the UI
* Fri Oct 1 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.4.4 * Fri Oct 1 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.4.4
- BUGFIX: Clean program exit on system shutdown/logout - BUGFIX: Clean program exit on system shutdown/logout

View File

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