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

Commit

Permalink
[kcalcore] Don't set hasEndDate for events with invalid end date.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcaliste committed Aug 14, 2019
1 parent 59a1de4 commit 585dcc1
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 585dcc1

Please sign in to comment.