mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
- Fixed a ratio assert in libtorrent because we sent it -1 for unlimited instead of 0
This commit is contained in:
parent
9cdcd53234
commit
9062266a84
4
TODO
4
TODO
@ -57,8 +57,8 @@
|
|||||||
- Wait that http://pastebin.ca/690649 is fixed
|
- Wait that http://pastebin.ca/690649 is fixed
|
||||||
|
|
||||||
LANGUAGES UPDATED:
|
LANGUAGES UPDATED:
|
||||||
- French *BETA7*
|
- French *OK*
|
||||||
- English *BETA6*
|
- English *OK*
|
||||||
- Japanese *BETA6*
|
- Japanese *BETA6*
|
||||||
- Swedish *BETA6*
|
- Swedish *BETA6*
|
||||||
- Slovak *BETA6*
|
- Slovak *BETA6*
|
||||||
|
1
configure
vendored
1
configure
vendored
@ -354,6 +354,7 @@ public:
|
|||||||
QString shortname() const { return "Qt 4.3"; }
|
QString shortname() const { return "Qt 4.3"; }
|
||||||
bool exec()
|
bool exec()
|
||||||
{
|
{
|
||||||
|
qWarning("QT VERSION: %s", QT_VERSION);
|
||||||
return(QT_VERSION >= 0x040300);
|
return(QT_VERSION >= 0x040300);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -955,6 +955,10 @@ void bittorrent::setUploadRateLimit(long rate) {
|
|||||||
// This function will apply to same ratio to all torrents
|
// This function will apply to same ratio to all torrents
|
||||||
void bittorrent::setGlobalRatio(float ratio) {
|
void bittorrent::setGlobalRatio(float ratio) {
|
||||||
if(ratio != -1 && ratio < 1.) ratio = 1.;
|
if(ratio != -1 && ratio < 1.) ratio = 1.;
|
||||||
|
if(ratio == -1) {
|
||||||
|
// 0 means unlimited for libtorrent
|
||||||
|
ratio = 0;
|
||||||
|
}
|
||||||
std::vector<torrent_handle> handles = s->get_torrents();
|
std::vector<torrent_handle> handles = s->get_torrents();
|
||||||
unsigned int nbHandles = handles.size();
|
unsigned int nbHandles = handles.size();
|
||||||
for(unsigned int i=0; i<nbHandles; ++i) {
|
for(unsigned int i=0; i<nbHandles; ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user