Skip to content
Permalink
Browse files

Avoid binding loop in date time widget

  • Loading branch information
m-kuhn committed Jun 15, 2020
1 parent 3726613 commit 2d96dd639993c85270ed8faf58ba38b2f3e06829
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/gui/editorwidgets/qgsdatetimeedit.cpp
@@ -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;

0 comments on commit 2d96dd6

Please sign in to comment.
You can’t perform that action at this time.