Skip to content

Commit

Permalink
Avoid binding loop in date time widget
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 15, 2020
1 parent 3726613 commit 2d96dd6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gui/editorwidgets/qgsdatetimeedit.cpp
Expand Up @@ -192,8 +192,12 @@ void QgsDateTimeEdit::showEvent( QShowEvent *event )

void QgsDateTimeEdit::changed( const QDateTime &dateTime )
{
mIsEmpty = false;
bool isNull = dateTime.isNull();

if ( mIsNull == isNull && QgsDateTimeEdit::dateTime() == dateTime )
return;

mIsEmpty = false;
if ( isNull != mIsNull )
{
mIsNull = isNull;
Expand Down

0 comments on commit 2d96dd6

Please sign in to comment.