Commit edae828c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix isValid support

parent e3bd6017
Pipeline #110259 passed with stage
in 9 minutes and 37 seconds
......@@ -43,7 +43,7 @@ void ConfirmBeforeDeletingRule::load(const KConfigGroup &group)
bool ConfirmBeforeDeletingRule::isValid() const
{
return !mPattern.isEmpty() && (mRuleType != Unknown);
return (!mPattern.isEmpty() && (mRuleType != Unknown)) || (mRuleType == Unread) || (mRuleType == Important);
}
void ConfirmBeforeDeletingRule::save(KConfigGroup &group) const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment