Skip to content

Commit 5f10a0b

Browse files
committedJun 9, 2017
fix 8c873b1 (fixes #16624)
(cherry picked from commit 6326947)
1 parent 5a3c763 commit 5f10a0b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed
 

‎src/app/ogr/qgsnewogrconnection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ QgsNewOgrConnection::QgsNewOgrConnection( QWidget *parent, const QString& connTy
6767
}
6868
cmbDatabaseTypes->setCurrentIndex( cmbDatabaseTypes->findText( connType ) );
6969
txtName->setText( connName );
70-
txtName->setValidator( new QRegExpValidator( QRegExp( "[^\\/]+" ), txtName ) );
7170
txtName->setEnabled( false );
7271
cmbDatabaseTypes->setEnabled( false );
7372
}
73+
txtName->setValidator( new QRegExpValidator( QRegExp( "[^\\/]+" ), txtName ) );
7474
}
7575

7676
QgsNewOgrConnection::~QgsNewOgrConnection()

‎src/providers/db2/qgsdb2newconnection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ QgsDb2NewConnection::QgsDb2NewConnection( QWidget *parent, const QString& connNa
7373
}
7474

7575
txtName->setText( connName );
76-
txtName->setValidator( new QRegExpValidator( QRegExp( "[^\\/]+" ), txtName ) );
7776
}
77+
txtName->setValidator( new QRegExpValidator( QRegExp( "[^\\/]+" ), txtName ) );
7878
}
7979

8080
/** Autoconnected SLOTS **/

‎src/providers/mssql/qgsmssqlnewconnection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ QgsMssqlNewConnection::QgsMssqlNewConnection( QWidget *parent, const QString& co
6363
}
6464

6565
txtName->setText( connName );
66-
txtName->setValidator( new QRegExpValidator( QRegExp( "[^\\/]+" ), txtName ) );
6766
}
67+
txtName->setValidator( new QRegExpValidator( QRegExp( "[^\\/]+" ), txtName ) );
6868
on_cb_trustedConnection_clicked();
6969
}
7070
/** Autoconnected SLOTS **/

‎src/providers/oracle/qgsoraclenewconnection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ QgsOracleNewConnection::QgsOracleNewConnection( QWidget *parent, const QString&
8080
}
8181

8282
txtName->setText( connName );
83-
txtName->setValidator( new QRegExpValidator( QRegExp( "[^\\/]+" ), txtName ) );
8483
}
84+
txtName->setValidator( new QRegExpValidator( QRegExp( "[^\\/]+" ), txtName ) );
8585
}
8686
/** Autoconnected SLOTS **/
8787
void QgsOracleNewConnection::accept()

‎src/providers/postgres/qgspgnewconnection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ QgsPgNewConnection::QgsPgNewConnection( QWidget *parent, const QString& connName
102102
}
103103

104104
txtName->setText( connName );
105-
txtName->setValidator( new QRegExpValidator( QRegExp( "[^\\/]+" ), txtName ) );
106105
}
106+
txtName->setValidator( new QRegExpValidator( QRegExp( "[^\\/]*" ), txtName ) );
107107
}
108108
/** Autoconnected SLOTS **/
109109
void QgsPgNewConnection::accept()

0 commit comments

Comments
 (0)
Please sign in to comment.