Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
rduivenvoorde committed Sep 7, 2020
1 parent 34c0356 commit 32b83a1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/gui/qgstemporalcontrollerwidget.cpp
Expand Up @@ -575,12 +575,7 @@ void QgsTemporalControllerWidget::setDates( const QgsDateTimeRange &range )
whileBlocking( mEndDateTime )->setDateTime( range.end() );
whileBlocking( mFixedRangeStartDateTime )->setDateTime( range.begin() );
whileBlocking( mFixedRangeEndDateTime )->setDateTime( range.end() );
// only if range is different from mNavigationObject->temporalExtents update
// else recursion as updateTemporalExtent itself calls mNavigationObject->setTemporalExtents
if ( range != mNavigationObject->temporalExtents() )
{
updateTemporalExtent();
}
updateTemporalExtent();
}
}

Expand Down

0 comments on commit 32b83a1

Please sign in to comment.