fix #124, properly set repetition if frequency and count is provided

This commit is contained in:
tibbi 2017-03-05 11:50:05 +01:00
parent c8af7f25be
commit 6838ce626a
1 changed files with 3 additions and 0 deletions

View File

@ -203,6 +203,9 @@ class IcsParser {
frequencySeconds = getFrequencySeconds(value)
} else if (key == COUNT) {
count = value.toInt()
if (frequencySeconds != 0) {
curRepeatLimit = curStart + count * frequencySeconds
}
} else if (key == UNTIL) {
curRepeatLimit = parseDateTimeValue(value)
} else if (key == INTERVAL) {