Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

Commit

Permalink
[kcalcore] Allow time alarm on all day incidence, fixes MER#1836.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcaliste committed Oct 27, 2017
1 parent 8f5f4db commit ea22413
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kcalcore/alarm.cpp
Expand Up @@ -507,9 +507,11 @@ KDateTime Alarm::time() const
} else if ( d->mParent ) {
if ( d->mEndOffset ) {
KDateTime dt = d->mParent->dateTime( Incidence::RoleAlarmEndOffset );
dt.setDateOnly(false);
return d->mOffset.end( dt );
} else {
KDateTime dt = d->mParent->dateTime( Incidence::RoleAlarmStartOffset );
dt.setDateOnly(false);
return d->mOffset.end( dt );
}
} else {
Expand Down

0 comments on commit ea22413

Please sign in to comment.