mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
- BUGFIX: Use the save path set in program preferences as a default in torrent addition dialog
This commit is contained in:
@@ -3,7 +3,8 @@
|
|||||||
- BUGFIX: Fix "Temp path" button in program preferences
|
- BUGFIX: Fix "Temp path" button in program preferences
|
||||||
- BUGFIX: Handle paths with [~, ., ..] properly
|
- BUGFIX: Handle paths with [~, ., ..] properly
|
||||||
- BUGFIX: Trackers are now displayed for torrents without metadata
|
- BUGFIX: Trackers are now displayed for torrents without metadata
|
||||||
- BUGFIX: Fix issue with speed limiting (value should be -1 not 0)
|
- BUGFIX: Fix issue with speed limiting (unlimited was not handled properly)
|
||||||
|
- BUGFIX: Use the save path set in program preferences as a default in torrent addition dialog
|
||||||
|
|
||||||
* Fri Dec 18 2009 - Christophe Dumez <chris@qbittorrent.org> - v2.0.2
|
* Fri Dec 18 2009 - Christophe Dumez <chris@qbittorrent.org> - v2.0.2
|
||||||
- BUGFIX: Fix .qbittorrent folder not being created (critical bug introduced in v2.0.1 that makes qBittorrent unusuable for new users)
|
- BUGFIX: Fix .qbittorrent folder not being created (critical bug introduced in v2.0.1 that makes qBittorrent unusuable for new users)
|
||||||
|
|||||||
@@ -50,6 +50,7 @@
|
|||||||
#include "ui_torrentadditiondlg.h"
|
#include "ui_torrentadditiondlg.h"
|
||||||
#include "torrentpersistentdata.h"
|
#include "torrentpersistentdata.h"
|
||||||
#include "torrentfilesmodel.h"
|
#include "torrentfilesmodel.h"
|
||||||
|
#include "preferences.h"
|
||||||
|
|
||||||
using namespace libtorrent;
|
using namespace libtorrent;
|
||||||
|
|
||||||
@@ -89,13 +90,8 @@ public:
|
|||||||
// Remember columns width
|
// Remember columns width
|
||||||
readSettings();
|
readSettings();
|
||||||
//torrentContentList->header()->setResizeMode(0, QHeaderView::Stretch);
|
//torrentContentList->header()->setResizeMode(0, QHeaderView::Stretch);
|
||||||
QString home = QDir::homePath();
|
savePathTxt->setText(Preferences::getSavePath());
|
||||||
if(home[home.length()-1] != QDir::separator()){
|
if(Preferences::addTorrentsInPause()) {
|
||||||
home += QDir::separator();
|
|
||||||
}
|
|
||||||
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
|
|
||||||
savePathTxt->setText(settings.value(QString::fromUtf8("LastDirTorrentAdd"), home+QString::fromUtf8("qBT_dir")).toString());
|
|
||||||
if(settings.value("Preferences/Downloads/StartInPause", false).toBool()) {
|
|
||||||
addInPause->setChecked(true);
|
addInPause->setChecked(true);
|
||||||
addInPause->setEnabled(false);
|
addInPause->setEnabled(false);
|
||||||
}
|
}
|
||||||
@@ -320,9 +316,6 @@ public slots:
|
|||||||
}
|
}
|
||||||
// Save savepath
|
// Save savepath
|
||||||
TorrentTempData::setSavePath(hash, savePath.path());
|
TorrentTempData::setSavePath(hash, savePath.path());
|
||||||
// Save last dir to remember it
|
|
||||||
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
|
|
||||||
settings.setValue(QString::fromUtf8("LastDirTorrentAdd"), savePathTxt->text());
|
|
||||||
// Create .incremental file if necessary
|
// Create .incremental file if necessary
|
||||||
TorrentTempData::setSequential(hash, checkIncrementalDL->isChecked());
|
TorrentTempData::setSequential(hash, checkIncrementalDL->isChecked());
|
||||||
#ifdef LIBTORRENT_0_15
|
#ifdef LIBTORRENT_0_15
|
||||||
|
|||||||
Reference in New Issue
Block a user