mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Allow strip root folder using default settings
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user