Skip to content

Commit 31f6a89

Browse files
committedSep 18, 2017
Fix coverity unchecked return value warning
1 parent 57beefd commit 31f6a89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/gui/qgsnewhttpconnection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ QgsNewHttpConnection::QgsNewHttpConnection( QWidget *parent, ConnectionTypes typ
3535
connect( buttonBox, &QDialogButtonBox::helpRequested, this, &QgsNewHttpConnection::showHelp );
3636

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.