Skip to content
Permalink
Browse files

fix 8c873b1 (fixes #16624)

  • Loading branch information
jef-n committed Jun 9, 2017
1 parent 5ff6b14 commit 63269479682b9b71d0de74b518de09d5f72029d2
@@ -63,10 +63,10 @@ QgsNewOgrConnection::QgsNewOgrConnection( QWidget *parent, const QString &connTy
}
cmbDatabaseTypes->setCurrentIndex( cmbDatabaseTypes->findText( connType ) );
txtName->setText( connName );
txtName->setValidator( new QRegExpValidator( QRegExp( "[^\\/]+" ), txtName ) );
txtName->setEnabled( false );
cmbDatabaseTypes->setEnabled( false );
}
txtName->setValidator( new QRegExpValidator( QRegExp( "[^\\/]+" ), txtName ) );
}

QgsNewOgrConnection::~QgsNewOgrConnection()
@@ -72,8 +72,8 @@ QgsDb2NewConnection::QgsDb2NewConnection( QWidget *parent, const QString &connNa
}

txtName->setText( connName );
txtName->setValidator( new QRegExpValidator( QRegExp( "[^\\/]+" ), txtName ) );
}
txtName->setValidator( new QRegExpValidator( QRegExp( "[^\\/]+" ), txtName ) );
}

//! Autoconnected SLOTS *
@@ -63,8 +63,8 @@ QgsMssqlNewConnection::QgsMssqlNewConnection( QWidget *parent, const QString &co
}

txtName->setText( connName );
txtName->setValidator( new QRegExpValidator( QRegExp( "[^\\/]+" ), txtName ) );
}
txtName->setValidator( new QRegExpValidator( QRegExp( "[^\\/]+" ), txtName ) );
on_cb_trustedConnection_clicked();
}
//! Autoconnected SLOTS *
@@ -80,8 +80,8 @@ QgsOracleNewConnection::QgsOracleNewConnection( QWidget *parent, const QString &
}

txtName->setText( connName );
txtName->setValidator( new QRegExpValidator( QRegExp( "[^\\/]+" ), txtName ) );
}
txtName->setValidator( new QRegExpValidator( QRegExp( "[^\\/]+" ), txtName ) );
}
//! Autoconnected SLOTS *
void QgsOracleNewConnection::accept()
@@ -102,8 +102,8 @@ QgsPgNewConnection::QgsPgNewConnection( QWidget *parent, const QString &connName
}

txtName->setText( connName );
txtName->setValidator( new QRegExpValidator( QRegExp( "[^\\/]+" ), txtName ) );
}
txtName->setValidator( new QRegExpValidator( QRegExp( "[^\\/]*" ), txtName ) );
}

QgsPgNewConnection::~QgsPgNewConnection()

0 comments on commit 6326947

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