Skip to content

Commit

Permalink
Hide raster options for non-WMS/WMTS layers
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Oct 24, 2017
1 parent 97ad01b commit 87cdc36
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/qgsrasterlayerproperties.cpp
Expand Up @@ -410,6 +410,13 @@ QgsRasterLayerProperties::QgsRasterLayerProperties( QgsMapLayer *lyr, QgsMapCanv
mBandRenderingGrpBx->setSizePolicy( sizep );
mBandRenderingGrpBx->updateGeometry();
}

if ( mRasterLayer->providerType() != QStringLiteral( "wms" ) )
{
mWMSPrintGroupBox->hide();
mPublishDataSourceUrlCheckBox->hide();
mBackgroundLayerCheckBox->hide();
}
}

mRenderTypeComboBox_currentIndexChanged( widgetIndex );
Expand Down

0 comments on commit 87cdc36

Please sign in to comment.