mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 18:56:08 +03:00
Fix: Label changes to first item in RSS rule list are forgotten, because checkRegex calls updateMustLineValidity, which saves the rule before new label can be applied.
This commit is contained in:
parent
bf3cbfc608
commit
87092e2716
1 changed files with 2 additions and 0 deletions
|
@ -248,7 +248,9 @@ void AutomatedRssDownloader::updateRuleDefinitionBox()
|
||||||
ui->lineEFilter->clear();
|
ui->lineEFilter->clear();
|
||||||
ui->saveDiffDir_check->setChecked(!rule->savePath().isEmpty());
|
ui->saveDiffDir_check->setChecked(!rule->savePath().isEmpty());
|
||||||
ui->lineSavePath->setText(fsutils::toNativePath(rule->savePath()));
|
ui->lineSavePath->setText(fsutils::toNativePath(rule->savePath()));
|
||||||
|
ui->checkRegex->blockSignals(true);
|
||||||
ui->checkRegex->setChecked(rule->useRegex());
|
ui->checkRegex->setChecked(rule->useRegex());
|
||||||
|
ui->checkRegex->blockSignals(false);
|
||||||
if (rule->label().isEmpty()) {
|
if (rule->label().isEmpty()) {
|
||||||
ui->comboLabel->setCurrentIndex(-1);
|
ui->comboLabel->setCurrentIndex(-1);
|
||||||
ui->comboLabel->clearEditText();
|
ui->comboLabel->clearEditText();
|
||||||
|
|
Loading…
Reference in a new issue