mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-22 01:06:03 +03:00
Switched to full allocation mode to fix selective download
This commit is contained in:
parent
ab35f7b030
commit
e83b872c4b
2 changed files with 3 additions and 5 deletions
|
@ -30,6 +30,7 @@
|
||||||
- BUGFIX: Fixed Isohunt search engine
|
- BUGFIX: Fixed Isohunt search engine
|
||||||
- BUGFIX: Fixed download from URL function (was buggy)
|
- BUGFIX: Fixed download from URL function (was buggy)
|
||||||
- BUGFIX: Fixed download button in search engine
|
- BUGFIX: Fixed download button in search engine
|
||||||
|
- BUGFIX: Switched to full allocation mode to fix selective download
|
||||||
- COSMETIC: Now displaying the number of downloads in tab title
|
- COSMETIC: Now displaying the number of downloads in tab title
|
||||||
- COSMETIC: Redesigned download from url dialog
|
- COSMETIC: Redesigned download from url dialog
|
||||||
- COSMETIC: Added a message to warn user that we started download from an url
|
- COSMETIC: Added a message to warn user that we started download from an url
|
||||||
|
|
|
@ -1276,7 +1276,7 @@ void GUI::addTorrents(const QStringList& pathsList, bool fromScanDir, const QStr
|
||||||
}
|
}
|
||||||
int row = DLListModel->rowCount();
|
int row = DLListModel->rowCount();
|
||||||
// Adding files to bittorrent session
|
// Adding files to bittorrent session
|
||||||
h = s->add_torrent(t, fs::path(saveDir.path().toStdString()), resume_data);
|
h = s->add_torrent(t, fs::path(saveDir.path().toStdString()), resume_data, false);
|
||||||
h.set_max_connections(60);
|
h.set_max_connections(60);
|
||||||
h.set_max_uploads(-1);
|
h.set_max_uploads(-1);
|
||||||
//qDebug("Added to session");
|
//qDebug("Added to session");
|
||||||
|
@ -1654,10 +1654,9 @@ void GUI::propertiesSelection(){
|
||||||
|
|
||||||
// Check connection status and display right icon
|
// Check connection status and display right icon
|
||||||
void GUI::checkConnectionStatus(){
|
void GUI::checkConnectionStatus(){
|
||||||
qDebug("Checking connection status 1");
|
qDebug("Checking connection status");
|
||||||
char tmp[MAX_CHAR_TMP];
|
char tmp[MAX_CHAR_TMP];
|
||||||
session_status sessionStatus = s->status();
|
session_status sessionStatus = s->status();
|
||||||
qDebug("Checking connection status 2");
|
|
||||||
// Update ratio info
|
// Update ratio info
|
||||||
float ratio = 1.;
|
float ratio = 1.;
|
||||||
if(sessionStatus.total_payload_download != 0){
|
if(sessionStatus.total_payload_download != 0){
|
||||||
|
@ -1668,7 +1667,6 @@ void GUI::checkConnectionStatus(){
|
||||||
}
|
}
|
||||||
snprintf(tmp, MAX_CHAR_TMP, "%.1f", ratio);
|
snprintf(tmp, MAX_CHAR_TMP, "%.1f", ratio);
|
||||||
LCD_Ratio->display(tmp);
|
LCD_Ratio->display(tmp);
|
||||||
qDebug("Checking connection status 3");
|
|
||||||
if(ratio < 0.5){
|
if(ratio < 0.5){
|
||||||
lbl_ratio_icon->setPixmap(QPixmap(QString::fromUtf8(":/Icons/unhappy.png")));
|
lbl_ratio_icon->setPixmap(QPixmap(QString::fromUtf8(":/Icons/unhappy.png")));
|
||||||
}else{
|
}else{
|
||||||
|
@ -1697,7 +1695,6 @@ void GUI::checkConnectionStatus(){
|
||||||
if(trackerErrors.size() > 50){
|
if(trackerErrors.size() > 50){
|
||||||
trackerErrors.clear();
|
trackerErrors.clear();
|
||||||
}
|
}
|
||||||
qDebug("Checking connection status 4");
|
|
||||||
// look at session alerts and display some infos
|
// look at session alerts and display some infos
|
||||||
std::auto_ptr<alert> a = s->pop_alert();
|
std::auto_ptr<alert> a = s->pop_alert();
|
||||||
while (a.get()){
|
while (a.get()){
|
||||||
|
|
Loading…
Reference in a new issue