Skip to content

Commit

Permalink
show correct service in connection title
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Apr 28, 2012
1 parent 297d0bd commit 06d38c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gui/qgsnewhttpconnection.cpp
Expand Up @@ -29,6 +29,9 @@ QgsNewHttpConnection::QgsNewHttpConnection(
{
setupUi( this );

QString service = baseKey.mid( 18, 3 ).toUpper();
setWindowTitle( tr( "Create a new %1 connection" ).arg( service ) );

// It would be obviously much better to use mBaseKey also for credentials,
// but for some strange reason a different hardcoded key was used instead.
// WFS and WMS credentials were mixed with the same key WMS.
Expand Down Expand Up @@ -65,7 +68,8 @@ QgsNewHttpConnection::QgsNewHttpConnection(
// Adjust height
int w = width();
adjustSize();
resize(w, height());
resize( w, height() );

}

on_txtName_textChanged( connName );
Expand Down

0 comments on commit 06d38c1

Please sign in to comment.