Skip to content
Permalink
Browse files

always update wmst reference time

  • Loading branch information
Samweli authored and nyalldawson committed Jun 15, 2020
1 parent 9dcc699 commit 4f497116c6bfa2cf83dee5f81b8c21d7d6979233
Showing with 10 additions and 10 deletions.
  1. +10 −10 src/gui/raster/qgsrasterlayerproperties.cpp
@@ -1274,17 +1274,17 @@ void QgsRasterLayerProperties::updateSourceStaticTime()
uri[ QStringLiteral( "temporalSource" ) ] = QLatin1String( "project" );
}
}
}

if ( mReferenceTime->isChecked() )
{
QString referenceTime = mReferenceDateTimeEdit->dateTime().toString( Qt::ISODateWithMs );
uri[ QStringLiteral( "referenceTime" ) ] = referenceTime;
}
else
{
if ( uri.contains( QStringLiteral( "referenceTime" ) ) )
uri.remove( QStringLiteral( "referenceTime" ) );
}
if ( mReferenceTime->isChecked() )
{
QString referenceTime = mReferenceDateTimeEdit->dateTime().toString( Qt::ISODateWithMs );
uri[ QStringLiteral( "referenceTime" ) ] = referenceTime;
}
else
{
if ( uri.contains( QStringLiteral( "referenceTime" ) ) )
uri.remove( QStringLiteral( "referenceTime" ) );
}
}

0 comments on commit 4f49711

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