Commit e26d93ff authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Fixed duration strings

parent 027107a6
......@@ -242,9 +242,7 @@ QVariant IncidenceOccurrenceModel::data(const QModelIndex &idx, int role) const
case DurationString:
{
KFormat format;
if (incidence.incidence->allDay()) {
return format.formatSpelloutDuration(24*60*60*1000); // format milliseconds in 1 day
} else if (duration.asSeconds() == 0) {
if (duration.asSeconds() == 0) {
return QLatin1String("");
} else {
return format.formatSpelloutDuration(duration.asSeconds() * 1000);
......
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