Browse Source

- Fix a crash when adding an already existing torrent

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
e4bf116ce8
  1. 2
      src/bittorrent.cpp

2
src/bittorrent.cpp

@ -982,7 +982,7 @@ QTorrentHandle Bittorrent::addTorrent(QString path, bool fromScanDir, QString fr @@ -982,7 +982,7 @@ QTorrentHandle Bittorrent::addTorrent(QString path, bool fromScanDir, QString fr
// and add them
QTorrentHandle h_ex = getTorrentHandle(hash);
if(h_ex.is_valid()) {
std::vector<announce_entry> old_trackers = h.trackers();
std::vector<announce_entry> old_trackers = h_ex.trackers();
std::vector<announce_entry> new_trackers = t->trackers();
bool trackers_added = false;
for(std::vector<announce_entry>::iterator it=new_trackers.begin();it!=new_trackers.end();it++) {

Loading…
Cancel
Save