|
|
@ -253,13 +253,9 @@ void AutomatedRssDownloader::updateRuleDefinitionBox() |
|
|
|
ui->checkRegex->blockSignals(true); |
|
|
|
ui->checkRegex->blockSignals(true); |
|
|
|
ui->checkRegex->setChecked(rule->useRegex()); |
|
|
|
ui->checkRegex->setChecked(rule->useRegex()); |
|
|
|
ui->checkRegex->blockSignals(false); |
|
|
|
ui->checkRegex->blockSignals(false); |
|
|
|
if (rule->category().isEmpty()) { |
|
|
|
ui->comboCategory->setCurrentIndex(ui->comboCategory->findText(rule->category())); |
|
|
|
ui->comboCategory->setCurrentIndex(-1); |
|
|
|
if (rule->category().isEmpty()) |
|
|
|
ui->comboCategory->clearEditText(); |
|
|
|
ui->comboCategory->clearEditText(); |
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
ui->comboCategory->setCurrentIndex(ui->comboCategory->findText(rule->category())); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ui->comboAddPaused->setCurrentIndex(rule->addPaused()); |
|
|
|
ui->comboAddPaused->setCurrentIndex(rule->addPaused()); |
|
|
|
ui->spinIgnorePeriod->setValue(rule->ignoreDays()); |
|
|
|
ui->spinIgnorePeriod->setValue(rule->ignoreDays()); |
|
|
|
QDateTime dateTime = rule->lastMatch(); |
|
|
|
QDateTime dateTime = rule->lastMatch(); |
|
|
@ -317,6 +313,7 @@ void AutomatedRssDownloader::initCategoryCombobox() |
|
|
|
// Load torrent categories
|
|
|
|
// Load torrent categories
|
|
|
|
QStringList categories = BitTorrent::Session::instance()->categories(); |
|
|
|
QStringList categories = BitTorrent::Session::instance()->categories(); |
|
|
|
std::sort(categories.begin(), categories.end(), Utils::String::naturalCompareCaseInsensitive); |
|
|
|
std::sort(categories.begin(), categories.end(), Utils::String::naturalCompareCaseInsensitive); |
|
|
|
|
|
|
|
ui->comboCategory->addItem(QString("")); |
|
|
|
ui->comboCategory->addItems(categories); |
|
|
|
ui->comboCategory->addItems(categories); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|