File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 34
34
#include < QNetworkReply>
35
35
#include < QThreadStorage>
36
36
#include < QAuthenticator>
37
+ #include < QStandardPaths>
37
38
38
39
#ifndef QT_NO_SSL
39
40
#include < QSslConfiguration>
@@ -390,8 +391,8 @@ void QgsNetworkAccessManager::setupDefaultProxyAndCache( Qt::ConnectionType conn
390
391
391
392
QString cacheDirectory = settings.value ( QStringLiteral ( " cache/directory" ) ).toString ();
392
393
if ( cacheDirectory.isEmpty () )
393
- cacheDirectory = QgsApplication::qgisSettingsDirPath () + " cache " ;
394
- qint64 cacheSize = settings.value ( QStringLiteral ( " cache/size" ), 50 * 1024 * 1024 ).toULongLong ();
394
+ cacheDirectory = QStandardPaths::writableLocation ( QStandardPaths::CacheLocation ) ;
395
+ qint64 cacheSize = settings.value ( QStringLiteral ( " cache/size" ), 50 * 1024 * 1024 ).toLongLong ();
395
396
newcache->setCacheDirectory ( cacheDirectory );
396
397
newcache->setMaximumCacheSize ( cacheSize );
397
398
QgsDebugMsgLevel ( QStringLiteral ( " cacheDirectory: %1" ).arg ( newcache->cacheDirectory () ), 4 );
You can’t perform that action at this time.
0 commit comments