Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix coverity unchecked return value warning
  • Loading branch information
nyalldawson committed Sep 18, 2017
1 parent 57beefd commit 31f6a89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsnewhttpconnection.cpp
Expand Up @@ -35,8 +35,8 @@ QgsNewHttpConnection::QgsNewHttpConnection( QWidget *parent, ConnectionTypes typ
connect( buttonBox, &QDialogButtonBox::helpRequested, this, &QgsNewHttpConnection::showHelp );

QRegExp rx( "/connections-([^/]+)/" );
rx.indexIn( baseKey );
setWindowTitle( tr( "Create a New %1 Connection" ).arg( rx.cap( 1 ).toUpper() ) );
if ( rx.indexIn( baseKey ) != -1 )
setWindowTitle( tr( "Create a New %1 Connection" ).arg( rx.cap( 1 ).toUpper() ) );

// It would be obviously much better to use mBaseKey also for credentials,
// but for some strange reason a different hardcoded key was used instead.
Expand Down

0 comments on commit 31f6a89

Please sign in to comment.