From e83b872c4b5bef73108e822c86943b9aa59969ad Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 5 Oct 2006 21:39:52 +0000 Subject: [PATCH] Switched to full allocation mode to fix selective download --- Changelog | 1 + src/GUI.cpp | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Changelog b/Changelog index 25055cd49..394e3d201 100644 --- a/Changelog +++ b/Changelog @@ -30,6 +30,7 @@ - BUGFIX: Fixed Isohunt search engine - BUGFIX: Fixed download from URL function (was buggy) - 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: Redesigned download from url dialog - COSMETIC: Added a message to warn user that we started download from an url diff --git a/src/GUI.cpp b/src/GUI.cpp index 6328fcb2a..53569da2c 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -1276,7 +1276,7 @@ void GUI::addTorrents(const QStringList& pathsList, bool fromScanDir, const QStr } int row = DLListModel->rowCount(); // 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_uploads(-1); //qDebug("Added to session"); @@ -1654,10 +1654,9 @@ void GUI::propertiesSelection(){ // Check connection status and display right icon void GUI::checkConnectionStatus(){ - qDebug("Checking connection status 1"); + qDebug("Checking connection status"); char tmp[MAX_CHAR_TMP]; session_status sessionStatus = s->status(); - qDebug("Checking connection status 2"); // Update ratio info float ratio = 1.; if(sessionStatus.total_payload_download != 0){ @@ -1668,7 +1667,6 @@ void GUI::checkConnectionStatus(){ } snprintf(tmp, MAX_CHAR_TMP, "%.1f", ratio); LCD_Ratio->display(tmp); - qDebug("Checking connection status 3"); if(ratio < 0.5){ lbl_ratio_icon->setPixmap(QPixmap(QString::fromUtf8(":/Icons/unhappy.png"))); }else{ @@ -1697,7 +1695,6 @@ void GUI::checkConnectionStatus(){ if(trackerErrors.size() > 50){ trackerErrors.clear(); } - qDebug("Checking connection status 4"); // look at session alerts and display some infos std::auto_ptr a = s->pop_alert(); while (a.get()){