mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 13:25:52 +03:00
Don't lose proxy settings when changing passwords
This commit is contained in:
parent
b87b0e16e6
commit
60f1c65a48
1 changed files with 2 additions and 4 deletions
|
@ -235,10 +235,8 @@ void OwncloudSetupWizard::testOwnCloudConnect()
|
||||||
// If there is already a config, take its proxy config.
|
// If there is already a config, take its proxy config.
|
||||||
if( ownCloudInfo::instance()->isConfigured() ) {
|
if( ownCloudInfo::instance()->isConfigured() ) {
|
||||||
MirallConfigFile prevCfg;
|
MirallConfigFile prevCfg;
|
||||||
if( prevCfg.proxyType() != QNetworkProxy::DefaultProxy ) {
|
cfgFile.setProxyType( prevCfg.proxyType(), prevCfg.proxyHostName(), prevCfg.proxyPort(),
|
||||||
cfgFile.setProxyType( prevCfg.proxyType(), prevCfg.proxyHostName(), prevCfg.proxyPort(),
|
prevCfg.proxyNeedsAuth(), prevCfg.proxyUser(), prevCfg.proxyPassword() );
|
||||||
prevCfg.proxyNeedsAuth(), prevCfg.proxyUser(), prevCfg.proxyPassword() );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// now start ownCloudInfo to check the connection.
|
// now start ownCloudInfo to check the connection.
|
||||||
|
|
Loading…
Reference in a new issue