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

View File

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