Skip to content
Permalink
Browse files

fix 8c873b1 (fixes #16624)

(cherry picked from commit 6326947)
  • Loading branch information
jef-n committed Jun 9, 2017
1 parent 5a3c763 commit 5f10a0baf3eaf3c67d9e6144f50b596bf9224e0b
@@ -67,10 +67,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()
@@ -73,8 +73,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 ) );
}
/** Autoconnected SLOTS **/
void QgsPgNewConnection::accept()

0 comments on commit 5f10a0b

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