Skip to content

Commit 06d38c1

Browse files
committedApr 28, 2012
show correct service in connection title
1 parent 297d0bd commit 06d38c1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎src/gui/qgsnewhttpconnection.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ QgsNewHttpConnection::QgsNewHttpConnection(
2929
{
3030
setupUi( this );
3131

32+
QString service = baseKey.mid( 18, 3 ).toUpper();
33+
setWindowTitle( tr( "Create a new %1 connection" ).arg( service ) );
34+
3235
// It would be obviously much better to use mBaseKey also for credentials,
3336
// but for some strange reason a different hardcoded key was used instead.
3437
// WFS and WMS credentials were mixed with the same key WMS.
@@ -65,7 +68,8 @@ QgsNewHttpConnection::QgsNewHttpConnection(
6568
// Adjust height
6669
int w = width();
6770
adjustSize();
68-
resize(w, height());
71+
resize( w, height() );
72+
6973
}
7074

7175
on_txtName_textChanged( connName );

0 commit comments

Comments
 (0)
Please sign in to comment.