Skip to content
Permalink
Browse files

fix #3615

git-svn-id: http://svn.osgeo.org/qgis/trunk@15478 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Mar 14, 2011
1 parent a197a6c commit ed779942a4ef2685771dbd2f3b39d7fcea771fd2
Showing with 10 additions and 1 deletion.
  1. +8 −1 src/app/qgsnewhttpconnection.cpp
  2. +2 −0 src/app/qgsnewhttpconnection.h
@@ -20,6 +20,7 @@
#include <QSettings>
#include <QMessageBox>
#include <QUrl>
#include <QPushButton>

QgsNewHttpConnection::QgsNewHttpConnection(
QWidget *parent, const QString& baseKey, const QString& connName, Qt::WFlags fl ):
@@ -42,14 +43,20 @@ QgsNewHttpConnection::QgsNewHttpConnection(
txtUrl->setText( settings.value( key + "/url" ).toString() );
txtUserName->setText( settings.value( credentialsKey + "/username" ).toString() );
txtPassword->setText( settings.value( credentialsKey + "/password" ).toString() );

}

on_txtName_textChanged( connName );
}

QgsNewHttpConnection::~QgsNewHttpConnection()
{
}

void QgsNewHttpConnection::on_txtName_textChanged( const QString &text )
{
buttonBox->button( QDialogButtonBox::Ok )->setDisabled( text.isEmpty() );
}

void QgsNewHttpConnection::accept()
{
QSettings settings;
@@ -37,6 +37,8 @@ class QgsNewHttpConnection : public QDialog, private Ui::QgsNewHttpConnectionBas
//! Saves the connection to ~/.qt/qgisrc
void accept();

void on_txtName_textChanged( const QString & );

void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); }

private:

0 comments on commit ed77994

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