Skip to content

Commit 404d89f

Browse files
committed
fix #7642
1 parent 02fc6ae commit 404d89f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/providers/wms/qgswmssourceselect.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ bool QgsWMSSourceSelect::populateLayerList( QgsWmsProvider *wmsProvider )
293293
if ( !wmsProvider->supportedLayers( layers ) )
294294
return false;
295295

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

305306
mImageFormatGroup->button( id )->setVisible( true );
307+
if ( first )
308+
{
309+
mImageFormatGroup->button( id )->setChecked( true );
310+
first = false;
311+
}
306312
}
307313

308314
btnGrpImageEncoding->setEnabled( true );

0 commit comments

Comments
 (0)