diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-24 16:06:54 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-24 16:06:54 +0200 |
| commit | 44de97a3724ba5eed3b2c2c4a69a6fd82ffa5fbe (patch) | |
| tree | ec965be6be95dc1868660fce4abfda64d502c6f2 /src | |
| parent | 6dcc0847e2089aeec1320d2a9227591c8767baf0 (diff) | |
| download | qtmaildir-44de97a3724ba5eed3b2c2c4a69a6fd82ffa5fbe.tar.gz qtmaildir-44de97a3724ba5eed3b2c2c4a69a6fd82ffa5fbe.zip | |
fix: an empty RRULE means does-not-repeat, not a custom rule
Diffstat (limited to 'src')
| -rw-r--r-- | src/repeatrule.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/repeatrule.cpp b/src/repeatrule.cpp index cc11c91..b9b9539 100644 --- a/src/repeatrule.cpp +++ b/src/repeatrule.cpp @@ -79,6 +79,9 @@ RepeatRule RepeatRule::fromRRule(const QString &value, const QDate &start) return custom; }; + if (value.trimmed().isEmpty()) + return rule; + QMap<QString, QString> parts; for (const QString &pair : value.split(QLatin1Char(';'), Qt::SkipEmptyParts)) { const int eq = pair.indexOf(QLatin1Char('=')); |
