Skip to content
Permalink
Browse files

Save and read the wms proxy password and user from the config

file. Should resolve ticket #8


git-svn-id: http://svn.osgeo.org/qgis/trunk@5243 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m
g_j_m committed Apr 10, 2006
1 parent 52fd227 commit 69c0c360e2fa265f884c7a35a8dd2b9833f273e6
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/gui/qgsnewhttpconnection.cpp
@@ -39,6 +39,8 @@ QgsNewHttpConnection::QgsNewHttpConnection(QWidget *parent, const QString& connN
txtUrl->setText (settings.readEntry(key + "/url"));
txtProxyHost->setText(settings.readEntry(key + "/proxyhost"));
txtProxyPort->setText(settings.readEntry(key + "/proxyport"));
txtProxyUser->setText(settings.readEntry(key + "/proxyuser"));
txtProxyPass->setText(settings.readEntry(key + "/proxypassword"));
}

QWidget::setTabOrder(txtName, txtUrl);
@@ -70,6 +72,9 @@ void QgsNewHttpConnection::saveConnection()
settings.writeEntry(baseKey + "/url", txtUrl->text().trimmed());
settings.writeEntry(baseKey + "/proxyhost", txtProxyHost->text().trimmed());
settings.writeEntry(baseKey + "/proxyport", txtProxyPort->text().trimmed());
settings.writeEntry(baseKey + "/proxyuser", txtProxyUser->text().trimmed());
settings.writeEntry(baseKey + "/proxypassword",
txtProxyPass->text().trimmed());

accept();
}

0 comments on commit 69c0c36

Please sign in to comment.
You can’t perform that action at this time.