Skip to content

Commit

Permalink
Don't put default network cache directory directly in $HOME
Browse files Browse the repository at this point in the history
Fix #15111
  • Loading branch information
m-kuhn committed Jun 26, 2016
1 parent 0bac4b8 commit f193c4e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/qgsoptions.cpp
Expand Up @@ -1134,7 +1134,11 @@ void QgsOptions::saveOptions()
mSettings->setValue( "proxy/proxyPassword", leProxyPassword->text() );
mSettings->setValue( "proxy/proxyType", mProxyTypeComboBox->currentText() );

mSettings->setValue( "cache/directory", mCacheDirectory->text() );
if ( !mCacheDirectory->text().isEmpty() )
mSettings->setValue( "cache/directory", mCacheDirectory->text() );
else
mSettings->remove( "cache/directory" );

mSettings->setValue( "cache/size", QVariant::fromValue( mCacheSize->value()*1024L ) );

//url to exclude from proxys
Expand Down

0 comments on commit f193c4e

Please sign in to comment.