Skip to content
Permalink
Browse files

Fix cache size setting in options dialog

The bug disabled network caching for all new QGIS installs...
  • Loading branch information
wonder-sk committed Aug 15, 2016
1 parent 50c3592 commit c3064389463f27d473d4e9e1c3f749419d7d82f6
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/qgsoptions.cpp
@@ -318,7 +318,8 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl )
mCacheSize->setMinimum( 0 );
mCacheSize->setMaximum( std::numeric_limits<int>::max() );
mCacheSize->setSingleStep( 1024 );
mCacheSize->setValue( mSettings->value( "cache/size" ).toInt() / 1024 );
qint64 cacheSize = mSettings->value( "cache/size", 50 * 1024 * 1024 ).toULongLong();
mCacheSize->setValue(( int )( cacheSize / 1024 ) );

//wms search server
leWmsSearch->setText( mSettings->value( "/qgis/WMSSearchUrl", "http://geopole.org/wms/search?search=%1&type=rss" ).toString() );

0 comments on commit c306438

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