Skip to content

Commit

Permalink
Save and read the wms proxy password and user from the config
Browse files Browse the repository at this point in the history
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 committed Apr 10, 2006
1 parent 52fd227 commit 69c0c36
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/qgsnewhttpconnection.cpp
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 69c0c36

Please sign in to comment.