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 16, 2021
1 parent 6dac89b commit 8cb1737b1851f723be97f9457b74a762871960a6
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 8cb1737

Please sign in to comment.