Skip to content

Commit

Permalink
Fix cache size setting in options dialog
Browse files Browse the repository at this point in the history
The bug disabled network caching for all new QGIS installs...
  • Loading branch information
wonder-sk committed Aug 15, 2016
1 parent 50c3592 commit c306438
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgsoptions.cpp
Expand Up @@ -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() );
Expand Down

0 comments on commit c306438

Please sign in to comment.