aboutsummaryrefslogtreecommitdiffstats
path: root/src/tagrulesdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tagrulesdialog.cpp')
-rw-r--r--src/tagrulesdialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tagrulesdialog.cpp b/src/tagrulesdialog.cpp
index 9f4cf6e..797cd92 100644
--- a/src/tagrulesdialog.cpp
+++ b/src/tagrulesdialog.cpp
@@ -321,8 +321,9 @@ void TagRulesDialog::onSelectionChanged()
m_query->setText(rule.query);
m_note->setPlainText(rule.note);
- // Parse once, on load, and keep it: Task 10's save path compares against
- // this to decide whether the stored string may be left alone.
+ // Parse once, on load, and keep it: the save path compares against this to
+ // decide whether the stored string may be left alone, so that opening a
+ // rule and closing it cannot rewrite the file mailctl also reads.
m_loadedQuery = RuleQuery::parse(rule.query);
if (m_loadedQuery.parsed)