Skip to content

Commit

Permalink
fix #7642
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Apr 18, 2013
1 parent 02fc6ae commit 404d89f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/providers/wms/qgswmssourceselect.cpp
Expand Up @@ -293,6 +293,7 @@ bool QgsWMSSourceSelect::populateLayerList( QgsWmsProvider *wmsProvider )
if ( !wmsProvider->supportedLayers( layers ) )
return false;

bool first = true;
foreach ( QString encoding, wmsProvider->supportedImageEncodings() )
{
int id = mMimeMap.value( encoding, -1 );
Expand All @@ -303,6 +304,11 @@ bool QgsWMSSourceSelect::populateLayerList( QgsWmsProvider *wmsProvider )
}

mImageFormatGroup->button( id )->setVisible( true );
if ( first )
{
mImageFormatGroup->button( id )->setChecked( true );
first = false;
}
}

btnGrpImageEncoding->setEnabled( true );
Expand Down

0 comments on commit 404d89f

Please sign in to comment.