- BUGFIX: Fix crash on torrent addition (if libtorrent-rasterbar has debug enabled)

This commit is contained in:
Christophe Dumez
2009-10-30 13:11:07 +00:00
parent 51dcd6c93c
commit 833f1d8c6a
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v1.5.5
- BUGFIX: Fixed man page
- BUGFIX: Fix crash on torrent addition (if libtorrent-rasterbar has debug enabled)
* Sun Oct 25 2009 - Christophe Dumez <chris@qbittorrent.org> - v1.5.4 * Sun Oct 25 2009 - Christophe Dumez <chris@qbittorrent.org> - v1.5.4
- BUGFIX: Updated man page - BUGFIX: Updated man page
- BUGFIX: Fixed possible crash with torrents containing unicode characters - BUGFIX: Fixed possible crash with torrents containing unicode characters

View File

@@ -856,7 +856,8 @@ void bittorrent::loadFilesPriorities(QTorrentHandle &h) {
qDebug("Setting file piority to %d", priority); qDebug("Setting file piority to %d", priority);
v.push_back(priority); v.push_back(priority);
} }
h.prioritize_files(v); if(v.size() == (unsigned int)h.num_files())
h.prioritize_files(v);
} }
float bittorrent::getRealRatio(QString hash) const{ float bittorrent::getRealRatio(QString hash) const{