Skip to content

Commit

Permalink
Better logic
Browse files Browse the repository at this point in the history
  • Loading branch information
rduivenvoorde committed Sep 5, 2020
1 parent 47a66d9 commit d72c219
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/core/qgstemporalnavigationobject.cpp
Expand Up @@ -128,11 +128,12 @@ void QgsTemporalNavigationObject::setNavigationMode( const NavigationMode mode )

void QgsTemporalNavigationObject::setTemporalExtents( const QgsDateTimeRange &temporalExtents )
{
if ( !( mTemporalExtents == temporalExtents ) )
if ( mTemporalExtents == temporalExtents )
{
mTemporalExtents = temporalExtents;
emit temporalExtentsChanged( mTemporalExtents );
return;
}
mTemporalExtents = temporalExtents;
emit temporalExtentsChanged( mTemporalExtents );

switch ( mNavigationMode )
{
Expand Down

0 comments on commit d72c219

Please sign in to comment.