Skip to content

Commit c306438

Browse files
committed
Fix cache size setting in options dialog
The bug disabled network caching for all new QGIS installs...
1 parent 50c3592 commit c306438

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/qgsoptions.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl )
318318
mCacheSize->setMinimum( 0 );
319319
mCacheSize->setMaximum( std::numeric_limits<int>::max() );
320320
mCacheSize->setSingleStep( 1024 );
321-
mCacheSize->setValue( mSettings->value( "cache/size" ).toInt() / 1024 );
321+
qint64 cacheSize = mSettings->value( "cache/size", 50 * 1024 * 1024 ).toULongLong();
322+
mCacheSize->setValue(( int )( cacheSize / 1024 ) );
322323

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

0 commit comments

Comments
 (0)