We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02fc6ae commit 404d89fCopy full SHA for 404d89f
src/providers/wms/qgswmssourceselect.cpp
@@ -293,6 +293,7 @@ bool QgsWMSSourceSelect::populateLayerList( QgsWmsProvider *wmsProvider )
293
if ( !wmsProvider->supportedLayers( layers ) )
294
return false;
295
296
+ bool first = true;
297
foreach ( QString encoding, wmsProvider->supportedImageEncodings() )
298
{
299
int id = mMimeMap.value( encoding, -1 );
@@ -303,6 +304,11 @@ bool QgsWMSSourceSelect::populateLayerList( QgsWmsProvider *wmsProvider )
303
304
}
305
306
mImageFormatGroup->button( id )->setVisible( true );
307
+ if ( first )
308
+ {
309
+ mImageFormatGroup->button( id )->setChecked( true );
310
+ first = false;
311
+ }
312
313
314
btnGrpImageEncoding->setEnabled( true );
0 commit comments