mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Allow strip root folder using default settings
This commit is contained in:
parent
711be50e9c
commit
c799923d7d
3 changed files with 5 additions and 3 deletions
|
@ -147,7 +147,7 @@ namespace BitTorrent
|
||||||
QVector<int> filePriorities; // used if TorrentInfo is set
|
QVector<int> filePriorities; // used if TorrentInfo is set
|
||||||
bool ignoreShareRatio = false;
|
bool ignoreShareRatio = false;
|
||||||
bool skipChecking = false;
|
bool skipChecking = false;
|
||||||
bool createSubfolder = true;
|
TriStateBool createSubfolder;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct TorrentStatusReport
|
struct TorrentStatusReport
|
||||||
|
|
|
@ -92,7 +92,9 @@ AddTorrentData::AddTorrentData(const AddTorrentParams ¶ms)
|
||||||
, sequential(params.sequential)
|
, sequential(params.sequential)
|
||||||
, hasSeedStatus(params.skipChecking) // do not react on 'torrent_finished_alert' when skipping
|
, hasSeedStatus(params.skipChecking) // do not react on 'torrent_finished_alert' when skipping
|
||||||
, skipChecking(params.skipChecking)
|
, skipChecking(params.skipChecking)
|
||||||
, hasRootFolder(params.createSubfolder)
|
, hasRootFolder(params.createSubfolder == TriStateBool::Undefined
|
||||||
|
? Session::instance()->isCreateTorrentSubfolder()
|
||||||
|
: params.createSubfolder == TriStateBool::True)
|
||||||
, addForced(params.addForced == TriStateBool::True)
|
, addForced(params.addForced == TriStateBool::True)
|
||||||
, addPaused(params.addPaused == TriStateBool::Undefined
|
, addPaused(params.addPaused == TriStateBool::Undefined
|
||||||
? Session::instance()->isAddTorrentPaused()
|
? Session::instance()->isAddTorrentPaused()
|
||||||
|
|
|
@ -642,7 +642,7 @@ void AddNewTorrentDialog::accept()
|
||||||
params.filePriorities = m_contentModel->model()->getFilePriorities();
|
params.filePriorities = m_contentModel->model()->getFilePriorities();
|
||||||
|
|
||||||
params.addPaused = TriStateBool(!ui->startTorrentCheckBox->isChecked());
|
params.addPaused = TriStateBool(!ui->startTorrentCheckBox->isChecked());
|
||||||
params.createSubfolder = ui->createSubfolderCheckBox->isChecked();
|
params.createSubfolder = TriStateBool(ui->createSubfolderCheckBox->isChecked());
|
||||||
|
|
||||||
QString savePath = ui->savePathComboBox->itemData(ui->savePathComboBox->currentIndex()).toString();
|
QString savePath = ui->savePathComboBox->itemData(ui->savePathComboBox->currentIndex()).toString();
|
||||||
if (ui->comboTTM->currentIndex() != 1) { // 0 is Manual mode and 1 is Automatic mode. Handle all non 1 values as manual mode.
|
if (ui->comboTTM->currentIndex() != 1) { // 0 is Manual mode and 1 is Automatic mode. Handle all non 1 values as manual mode.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue