mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-10 00:13:55 -04:00
Fix cache size setting in options dialog
The bug disabled network caching for all new QGIS installs...
This commit is contained in:
parent
50c35929d8
commit
c306438946
@ -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() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user