Skip to content
Permalink
Browse files
Fix temporal fields reset if previously set to no value
Fixes #43643

(cherry picked from commit ab1ff23)
  • Loading branch information
nyalldawson committed Jun 21, 2021
1 parent 9e7212c commit c87462dc1b6e29fc2d830bc50832b870d8c205ae
Showing with 4 additions and 10 deletions.
  1. +4 −10 src/gui/qgsvectorlayertemporalpropertieswidget.cpp
@@ -159,16 +159,10 @@ void QgsVectorLayerTemporalPropertiesWidget::syncToLayer()

mFixedDurationSpinBox->setValue( properties->fixedDuration() );

if ( !properties->startField().isEmpty() )
{
mSingleFieldComboBox->setField( properties->startField() );
mStartFieldComboBox->setField( properties->startField() );
mDurationStartFieldComboBox->setField( properties->startField() );
}
if ( !properties->endField().isEmpty() )
{
mEndFieldComboBox->setField( properties->endField() );
}
mSingleFieldComboBox->setField( properties->startField() );
mStartFieldComboBox->setField( properties->startField() );
mDurationStartFieldComboBox->setField( properties->startField() );
mEndFieldComboBox->setField( properties->endField() );
mDurationFieldComboBox->setField( properties->durationField() );
mDurationUnitsComboBox->setCurrentIndex( mDurationUnitsComboBox->findData( properties->durationUnits() ) );
mFixedDurationUnitsComboBox->setCurrentIndex( mDurationUnitsComboBox->findData( properties->durationUnits() ) );

0 comments on commit c87462d

Please sign in to comment.