Skip to content

Commit fb51c27

Browse files
committed
Allow connection with local ident on non-standard port
1 parent 5f9c1dd commit fb51c27

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/qgsdatasourceuri.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,10 @@ QString QgsDataSourceURI::connectionInfo() const
480480
else if ( mHost != "" )
481481
{
482482
connectionItems << "host=" + mHost;
483+
}
484+
485+
if ( mService.isEmpty() )
486+
{
483487
if ( mPort != "" )
484488
connectionItems << "port=" + mPort;
485489
}

0 commit comments

Comments
 (0)