mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 08:27:24 -06:00
BUGFIX: Fix display of URL seeds in the UI
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user