From c3064389463f27d473d4e9e1c3f749419d7d82f6 Mon Sep 17 00:00:00 2001 From: Martin Dobias Date: Mon, 15 Aug 2016 10:21:49 +0200 Subject: [PATCH] Fix cache size setting in options dialog The bug disabled network caching for all new QGIS installs... --- src/app/qgsoptions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/qgsoptions.cpp b/src/app/qgsoptions.cpp index 6a138e46126..8a4d53fe113 100644 --- a/src/app/qgsoptions.cpp +++ b/src/app/qgsoptions.cpp @@ -318,7 +318,8 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl ) mCacheSize->setMinimum( 0 ); mCacheSize->setMaximum( std::numeric_limits::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() );