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

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'dtend' into 'master'
[kcalcore] Don't set hasEndDate for events with invalid end date.

See merge request mer-core/kcalcore!10
  • Loading branch information
chriadam committed Sep 4, 2019
2 parents 59a1de4 + 585dcc1 commit 2ee568f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kcalcore/event.cpp
Expand Up @@ -139,7 +139,7 @@ void Event::setDtEnd( const KDateTime &dtEnd )

d->mDtEnd = dtEnd;
d->mMultiDayValid = false;
setHasEndDate( true );
setHasEndDate( dtEnd.isValid() );
setHasDuration( false );
setFieldDirty( FieldDtEnd );
updated();
Expand Down

0 comments on commit 2ee568f

Please sign in to comment.