Skip to content

Commit

Permalink
fix #3615
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@15478 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Mar 14, 2011
1 parent a197a6c commit ed77994
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/app/qgsnewhttpconnection.cpp
Expand Up @@ -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 ):
Expand All @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/app/qgsnewhttpconnection.h
Expand Up @@ -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:
Expand Down

0 comments on commit ed77994

Please sign in to comment.