From f5c0cddea5395f60090143e7e97a27b2c909ea31 Mon Sep 17 00:00:00 2001 From: Nick Tiskov Date: Mon, 31 Aug 2015 01:48:30 +0300 Subject: [PATCH] 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. --- src/gui/rss/automatedrssdownloader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/rss/automatedrssdownloader.cpp b/src/gui/rss/automatedrssdownloader.cpp index c18cdd935..7750aefd6 100644 --- a/src/gui/rss/automatedrssdownloader.cpp +++ b/src/gui/rss/automatedrssdownloader.cpp @@ -248,7 +248,9 @@ void AutomatedRssDownloader::updateRuleDefinitionBox() ui->lineEFilter->clear(); ui->saveDiffDir_check->setChecked(!rule->savePath().isEmpty()); ui->lineSavePath->setText(Utils::Fs::toNativePath(rule->savePath())); + ui->checkRegex->blockSignals(true); ui->checkRegex->setChecked(rule->useRegex()); + ui->checkRegex->blockSignals(false); if (rule->label().isEmpty()) { ui->comboLabel->setCurrentIndex(-1); ui->comboLabel->clearEditText();