1. In option window add column 'download path' for watched folders and enlarge heigth.

2. Change logic checkbox in column 'download here': if it checked,
   then torrent file will download to watchdir, if state is unchecked,
   will be use download path from next column.
This commit is contained in:
dsimakov
2015-03-18 17:25:25 +04:00
committed by sledgehammer999
parent 84f6a82d98
commit 1f17a7836d
8 changed files with 3519 additions and 11 deletions

View File

@@ -162,8 +162,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>480</width>
<height>672</height>
<width>484</width>
<height>692</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_9">
@@ -519,7 +519,7 @@
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<y>-282</y>
<width>487</width>
<height>965</height>
</rect>
@@ -724,7 +724,7 @@
<property name="minimumSize">
<size>
<width>250</width>
<height>75</height>
<height>150</height>
</size>
</property>
<property name="selectionMode">
@@ -1819,8 +1819,12 @@
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimum">
<number>1</number>
<property name="displayFormat">
<string notr="true">hh:mm</string>
</property>
<property name="calendarPopup">
<bool>false</bool>
</property>
</property>
<property name="maximum">
<number>1000000</number>
@@ -1842,6 +1846,9 @@
<property name="text">
<string>KiB/s</string>
</property>
<property name="displayFormat">
<string notr="true">hh:mm</string>
</property>
</widget>
</item>
<item row="0" column="4">
@@ -2730,8 +2737,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>98</width>
<height>28</height>
<width>498</width>
<height>366</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_36">

View File

@@ -1202,7 +1202,7 @@ void options_imp::on_addScanFolderButton_clicked()
const QString dir = QFileDialog::getExistingDirectory(this, tr("Add directory to scan"),
Utils::Fs::toNativePath(Utils::Fs::folderName(pref->getScanDirsLastPath())));
if (!dir.isEmpty()) {
const ScanFoldersModel::PathStatus status = ScanFoldersModel::instance()->addPath(dir, false);
const ScanFoldersModel::PathStatus status = ScanFoldersModel::instance()->addPath(dir, true, "");
QString error;
switch (status) {
case ScanFoldersModel::AlreadyInList: