Skip to content

Commit 817f5a9

Browse files
committed
Fix #9359; set default WCS caching to Prefer Network
- This is noted in the tool tip, but was not set. Always Cache was the default, which caused the cache to never be updated on upstream changes. Caveat: this does not fix projects with existing WCS layers.
1 parent 6f1c371 commit 817f5a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/gui/qgsowssourceselect.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ QgsOWSSourceSelect::QgsOWSSourceSelect( QString service, QWidget * parent, Qt::W
8686
mCacheComboBox->addItem( tr( "Prefer network" ), QNetworkRequest::PreferNetwork );
8787
mCacheComboBox->addItem( tr( "Always network" ), QNetworkRequest::AlwaysNetwork );
8888

89+
// 'Prefer network' is the default noted in the combobox's tool tip
90+
mCacheComboBox->setCurrentIndex( mCacheComboBox->findData( QNetworkRequest::PreferNetwork ) );
91+
8992
if ( !mManagerMode )
9093
{
9194
connect( mAddButton, SIGNAL( clicked() ), this, SLOT( addClicked() ) );

0 commit comments

Comments
 (0)