diff options
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('=')); |
