Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix travis tests
  • Loading branch information
Samweli committed Mar 30, 2020
1 parent ac2a183 commit 04830f9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/gui/raster/qgsrasterlayerproperties.cpp
Expand Up @@ -1263,18 +1263,18 @@ void QgsRasterLayerProperties::setSourceStaticTimeState()
mEndStaticDateTimeEdit->setDateTime( QDateTime::fromString( parts.at( 1 ), Qt::ISODateWithMs ) );
}

const QString referenceTimeExent = uri.param( QStringLiteral( "referenceTimeDimensionExtent" ) );
const QString referenceTimeExtent = uri.param( QStringLiteral( "referenceTimeDimensionExtent" ) );

mReferenceTime->setEnabled( !referenceTimeExent.isEmpty() );
mReferenceDateTimeEdit->setVisible( !referenceTimeExent.isEmpty() );
mReferenceTime->setEnabled( !referenceTimeExtent.isEmpty() );
mReferenceDateTimeEdit->setVisible( !referenceTimeExtent.isEmpty() );

QString referenceTimeLabelText = referenceTimeExent.isEmpty() ?
QString referenceTimeLabelText = referenceTimeExtent.isEmpty() ?
tr( "There is no reference time in the layer's capabilities." ) : QString();
mReferenceTimeLabel->setText( referenceTimeLabelText );

const QString referenceTime = uri.param( QStringLiteral( "reference_time" ) );

if ( !referenceTime.isEmpty() && !referenceTimeExent.isEmpty() )
if ( !referenceTime.isEmpty() && !referenceTimeExtent.isEmpty() )
{
if ( referenceTime.contains( '/' ) )
{
Expand Down

0 comments on commit 04830f9

Please sign in to comment.