Skip to content
Browse files

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.
  • Loading branch information
dakcarto committed Oct 26, 2014
1 parent 6f1c371 commit 817f5a9a0d4224ab667f182f29499b1dfb9a3298
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/gui/qgsowssourceselect.cpp
@@ -86,6 +86,9 @@ QgsOWSSourceSelect::QgsOWSSourceSelect( QString service, QWidget * parent, Qt::W
mCacheComboBox->addItem( tr( "Prefer network" ), QNetworkRequest::PreferNetwork );
mCacheComboBox->addItem( tr( "Always network" ), QNetworkRequest::AlwaysNetwork );

// 'Prefer network' is the default noted in the combobox's tool tip
mCacheComboBox->setCurrentIndex( mCacheComboBox->findData( QNetworkRequest::PreferNetwork ) );

if ( !mManagerMode )
connect( mAddButton, SIGNAL( clicked() ), this, SLOT( addClicked() ) );

0 comments on commit 817f5a9

Please sign in to comment.
You can’t perform that action at this time.