Skip to content

Commit 79e7bde

Browse files
committedMay 1, 2020
Enables Postgresql service based connections without database name
1 parent 752d0ad commit 79e7bde

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed
 

‎src/providers/postgres/qgspgnewconnection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ void QgsPgNewConnection::showHelp()
249249
void QgsPgNewConnection::updateOkButtonState()
250250
{
251251
bool enabled = !txtName->text().isEmpty() && (
252-
( !txtService->text().isEmpty() && !txtDatabase->text().isEmpty() ) ||
252+
( !txtService->text().isEmpty() && txtDatabase->text().isEmpty() ) ||
253253
( !txtHost->text().isEmpty() && !txtPort->text().isEmpty() && !txtDatabase->text().isEmpty() ) );
254254
buttonBox->button( QDialogButtonBox::Ok )->setEnabled( enabled );
255255
}

‎src/providers/postgres/qgspgsourceselect.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ void QgsPgSourceSelect::btnLoad_clicked()
345345
void QgsPgSourceSelect::btnEdit_clicked()
346346
{
347347
QgsPgNewConnection *nc = new QgsPgNewConnection( this, cmbConnections->currentText() );
348+
nc->setWindowTitle( tr( "Edit PostGIS Connection" ) );
348349
if ( nc->exec() )
349350
{
350351
populateConnectionList();

‎src/providers/postgres/qgspostgresdataitemguiprovider.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ void QgsPostgresDataItemGuiProvider::newConnection( QgsDataItem *item )
185185
void QgsPostgresDataItemGuiProvider::editConnection( QgsDataItem *item )
186186
{
187187
QgsPgNewConnection nc( nullptr, item->name() );
188+
nc.setWindowTitle( tr( "Edit PostGIS Connection" ) );
188189
if ( nc.exec() )
189190
{
190191
// the parent should be updated

0 commit comments

Comments
 (0)
Please sign in to comment.